Happy New Year guys,
Sorry that I have a simple question regarding btManifoldPoint::getDistance(), from what i know is that if the distance is less than 0, the penetration happens.
My question now is that, how do i determine which direction of distance is it giving?
For e.g,
I have a point, and with a triangle, how do i determine which direction of penetration does this getDistance() tells me?
Thank you so much!
btManifoldPoint::getDistance() penetration question
-
- Posts: 41
- Joined: Wed Nov 20, 2013 4:14 pm
-
- Posts: 225
- Joined: Wed Jan 07, 2009 11:43 am
- Location: London
Re: btManifoldPoint::getDistance() penetration question
m_normalWorldOnB should give you what you need