Fix the Bullet Raycast sample. Closes #450.

This commit is contained in:
Benjamin Ellenberger 2015-08-25 15:56:46 +02:00
parent 10de7db29a
commit e39bf6c4cd

View File

@ -126,7 +126,7 @@ void RaytestDemo::castRays()
btCollisionWorld::ClosestRayResultCallback closestResults(from,to);
closestResults.m_flags |= btTriangleRaycastCallback::kF_FilterBackfaces;
m_dynamicsWorld->rayTest(from,to,closestResults);
if (closestResults.hasHit())
{