Commit 8b2a70a5 authored by D-AIRY's avatar D-AIRY

Minor fix

parent 903ebafb
......@@ -995,7 +995,7 @@ struct btSingleRayCallback : public btBroadphaseRayCallback
btCollisionObject* collisionObject = (btCollisionObject*)proxy->m_clientObject;
//only perform raycast if filterMask matches
if(m_resultCallback.needsCollision(collisionObject->getBroadphaseHandle()))
if(collisionObject->getBroadphaseHandle() && m_resultCallback.needsCollision(collisionObject->getBroadphaseHandle()))
{
//RigidcollisionObject* collisionObject = ctrl->GetRigidcollisionObject();
//btVector3 collisionObjectAabbMin,collisionObjectAabbMax;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment