add Raycast demo

This commit is contained in:
Erwin Coumans
2015-04-30 15:31:44 -07:00
parent c95fe654ad
commit aec360f158
6 changed files with 361 additions and 7 deletions

View File

@@ -309,6 +309,7 @@ void btCollisionWorld::rayTestSingleInternal(const btTransform& rayFromTrans,con
{
if (castResult.m_fraction < resultCallback.m_closestHitFraction)
{
//todo: figure out what this is about. When is rayFromTest.getBasis() not identity?
#ifdef USE_SUBSIMPLEX_CONVEX_CAST
//rotate normal into worldspace
castResult.m_normal = rayFromTrans.getBasis() * castResult.m_normal;