Normal vector of a face loaded from an FBX model during collision?
- by Corey Ogburn
I'm loading a simple 6 sided cube from a UV-mapped FBX model and I'm using a BoundingBox to test for collisions. Once I determine there's a collision, I want to use the normal vector of the collided surface to correct the movement of whatever collided with the cube. I suppose this is a two-part question:
1) How can I determine which face of the cube was collided with in a collision?
2) How can I get the normal vector of that surface?