mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-09-30 14:05:36 +00:00
apply custom pair-cache filter to predictive contacts
This commit is contained in:
@@ -800,6 +800,14 @@ public:
|
||||
///don't do CCD when the collision filters are not matching
|
||||
if (!ClosestConvexResultCallback::needsCollision(proxy0))
|
||||
return false;
|
||||
if (m_pairCache->getOverlapFilterCallback()) { // stephengold added 2020-02-12
|
||||
btBroadphaseProxy* proxy1 = m_me->getBroadphaseHandle(); // stephengold added 2020-02-12
|
||||
bool collides = m_pairCache->needsBroadphaseCollision(proxy0, proxy1); // stephengold added 2020-02-12
|
||||
if (!collides) // stephengold added 2020-02-12
|
||||
{ // stephengold added 2020-02-12
|
||||
return false; // stephengold added 2020-02-12
|
||||
} // stephengold added 2020-02-12
|
||||
} // stephengold added 2020-02-12
|
||||
|
||||
btCollisionObject* otherObj = (btCollisionObject*)proxy0->m_clientObject;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user