From ddb262dceefad82a56e6433dff8556fa446f336b Mon Sep 17 00:00:00 2001 From: cmp Date: Wed, 6 Jun 2018 10:49:08 +0200 Subject: [PATCH] If a body with speculative CCD enabled has scene query or visualization shapes, adding them to the changed handle map will result in SimpleAABBManager::updateAABBsAndBP asserting on PX_ASSERT(mGroups[handle] != Bp::FilterGroup::eINVALID); --- PhysX_3.4/Source/SimulationController/src/ScScene.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PhysX_3.4/Source/SimulationController/src/ScScene.cpp b/PhysX_3.4/Source/SimulationController/src/ScScene.cpp index 1cc84a0d9..5fa4082e4 100644 --- a/PhysX_3.4/Source/SimulationController/src/ScScene.cpp +++ b/PhysX_3.4/Source/SimulationController/src/ScScene.cpp @@ -2329,7 +2329,10 @@ void Sc::Scene::preRigidBodyNarrowPhase(PxBaseTask* continuation) Sc::ShapeSim* shapeSim = NULL; while ((shapeSim = iterator.getNext()) != NULL) { - changedMap.growAndSet(shapeSim->getElementID()); + if (shapeSim->isInBroadPhase()) + { + changedMap.growAndSet(shapeSim->getElementID()); + } } if (ccdTask->mNbBodies == SpeculativeCCDContactDistanceUpdateTask::MaxBodies)