Commit 0d4f8a91 authored by D-AIRY's avatar D-AIRY

Fixed onDeath fault

parent f92f8598
......@@ -486,8 +486,13 @@ bool btKinematicCharacterController::canStandUp(float fDelta)
end.setRotation(m_targetOrientation);
btKinematicClosestNotMeConvexResultCallback callback(m_ghostObject, -m_up, m_maxSlopeCosine);
callback.m_collisionFilterGroup = getGhostObject()->getBroadphaseHandle()->m_collisionFilterGroup;
callback.m_collisionFilterMask = getGhostObject()->getBroadphaseHandle()->m_collisionFilterMask;
btBroadphaseProxy *pProxy = getGhostObject()->getBroadphaseHandle();
if(!pProxy)
{
return(true);
}
callback.m_collisionFilterGroup = pProxy->m_collisionFilterGroup;
callback.m_collisionFilterMask = pProxy->m_collisionFilterMask;
m_ghostObject->convexSweepTest(m_convexShape, start, end, callback);
......
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