New answers tagged bounding-boxes
Nevermind, I found out how to solve it: I should use BoundingBox.CreateFromPointsinstead of the standard constructor. The standard constructor gets confused if Minand Max aren't actually Min and Max. BoundingBox.CreateFromPoints takes care of this.
You could convert one of the OBBs to an AABB by applying the inverse of the first OBBs transform to both OBBs. Now the first OBBs is an AABB and the other is still an OBB, so you can use the AABB vs OBB function to test if they overlap. If the collision function returns a normal/position, you must transform them by the fist OBBs transform to put them back ...
Top 50 recent answers are included