I have two bounding boxes defined by the following values:
m1.min.x;//the min x value of model 1
m1.min.y;// " " y " " " "
m1.min.z;// " " z " " " "
m1.max.x;// " max x " " " "
m1.max.y;// " " y " " " "
m1.max.z;// " " z " " " "
m2.min.x;// " min x " " " 2
m2.min.y;// " " y " " " "
m2.min.z;// " " z " " " "
m2.max.x;// " max x " " " "
m2.max.y;// " " y " " " "
m2.max.z;// " " z " " " "
I know that the form is gonna look something like this:
if (a&&
b&&
c&&
//...
)
{
//there is a collision
}
I did this in 2d without a problem at all, but now I am in 3d and I am completely out of my element. Any point in the right direction would be helpful.