Get triangle normal

Get triangle normal

vhab's picture

Greetings,

I'm looking for a way to get the actual surface normal of the triangle inside a hkpMoppBvTreeShape while processing all collisions inprocessConstraintsCallback(const hkArray& manifold, hkpSimplexSolverInput& input). The manifold does give me a normal, but it would be the normal on my hkpCapsuleShape where it hit thehkpMoppBvTreeShape. Instead I'm in need of the normal on the other shape (or multiple if it's hitting multiple triangles). Any suggestions? Edit: seems I completely missed someone else asking the same question. I'll keep on eye onhttp://software.intel.com/en-us/forums/showthread.php?t=64141 for answers.
2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
kxxx_og's picture
Quoting - vhab Greetings, I'm looking for a way to get the actual surface normal of the triangle inside a hkpMoppBvTreeShape while processing all collisions inprocessConstraintsCallback(const hkArray& manifold, hkpSimplexSolverInput& input). The manifold does give me a normal, but it would be the normal on my hkpCapsuleShape where it hit thehkpMoppBvTreeShape. Instead I'm in need of the normal on the other shape (or multiple if it's hitting multiple triangles). Any suggestions? Edit: seems I completely missed someone else asking the same question. I'll keep on eye onhttp://software.intel.com/en-us/forums/showthread.php?t=64141 for answers.

There's an answer to your question.
http://software.intel.com/en-us/forums/showthread.php?t=64141

Login to leave a comment.