Normal vector of a face loaded from an FBX model during collision?
Posted
by
Corey Ogburn
on Game Development
See other posts from Game Development
or by Corey Ogburn
Published on 2011-06-21T16:20:38Z
Indexed on
2011/06/21
16:31 UTC
Read the original article
Hit count: 249
XNA
|collision-detection
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?
© Game Development or respective owner