Manifold for boxes
Finding the collision manifold between two OBBs is difficult. The collision normal and penetration distance come right from the Separating Axis Theorem. Recall that there are potentially 15 axes of potential separation between two OBBs. While performing the SAT tests, we keep track of which axis had the least penetration; that is the axis of intersection. The collision normal is the same as the axis of intersection. The penetration depth is the difference between the centers of both the OBBs projected onto this axis.
What makes finding the manifold for OBBs difficult is determining the contact points between the boxes. There are several ways in which two boxes could intersect, each producing different types of contact points: ...
Get Game Physics Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.