diff options
| author | sschirm <[email protected]> | 2017-01-06 14:45:46 +0100 |
|---|---|---|
| committer | sschirm <[email protected]> | 2017-01-06 14:45:46 +0100 |
| commit | c7a921796332e8fcd51f3e05c1a318a41282e1e2 (patch) | |
| tree | 770db0c76e954045fe5178a36a7519b26df6942a /PhysX_3.4/Source/SimulationController/src/ScScene.cpp | |
| parent | PhysX 3.4, APEX 1.4 release candidate update: @21511067-21511214 (diff) | |
| download | physx-3.4-c7a921796332e8fcd51f3e05c1a318a41282e1e2.tar.xz physx-3.4-c7a921796332e8fcd51f3e05c1a318a41282e1e2.zip | |
PhysX 3.4, APEX 1.4 release candidate update: @21542069
Diffstat (limited to 'PhysX_3.4/Source/SimulationController/src/ScScene.cpp')
| -rw-r--r-- | PhysX_3.4/Source/SimulationController/src/ScScene.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/PhysX_3.4/Source/SimulationController/src/ScScene.cpp b/PhysX_3.4/Source/SimulationController/src/ScScene.cpp index 28945a12..47869390 100644 --- a/PhysX_3.4/Source/SimulationController/src/ScScene.cpp +++ b/PhysX_3.4/Source/SimulationController/src/ScScene.cpp @@ -23,7 +23,7 @@ // components in life support devices or systems without express written approval of // NVIDIA Corporation. // -// Copyright (c) 2008-2016 NVIDIA Corporation. All rights reserved. +// Copyright (c) 2008-2017 NVIDIA Corporation. All rights reserved. // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved. // Copyright (c) 2001-2004 NovodeX AG. All rights reserved. @@ -2238,6 +2238,7 @@ private: PX_NOCOPY(SpeculativeCCDContactDistanceArticulationUpdateTask) }; + void Sc::Scene::preRigidBodyNarrowPhase(PxBaseTask* continuation) { PX_PROFILE_ZONE("Scene.preNarrowPhase", getContextId()); @@ -5001,7 +5002,10 @@ void Sc::Scene::addBody(BodyCore& body, void*const *shapes, PxU32 nbShapes, size if (sim->getLowLevelBody().mCore->mFlags & PxRigidBodyFlag::eENABLE_SPECULATIVE_CCD) { if (sim->isArticulationLink()) - mSpeculativeCDDArticulationBitMap.growAndSet(sim->getNodeIndex().index()); + { + if (sim->getNodeIndex().isValid()) + mSpeculativeCDDArticulationBitMap.growAndSet(sim->getNodeIndex().index()); + } else mSpeculativeCCDRigidBodyBitMap.growAndSet(sim->getNodeIndex().index()); } |