From 3f9977d72f8a481e76b6ad643a3d312a8cf9b551 Mon Sep 17 00:00:00 2001 From: Sheikh Dawood Date: Mon, 13 Aug 2018 13:37:04 -0500 Subject: PhysX 3.4, APEX 1.4 patch release @24698370 --- .../SimulationController/src/ScShapeInteraction.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'PhysX_3.4/Source/SimulationController/src/ScShapeInteraction.cpp') diff --git a/PhysX_3.4/Source/SimulationController/src/ScShapeInteraction.cpp b/PhysX_3.4/Source/SimulationController/src/ScShapeInteraction.cpp index 6ee9218d..edea6734 100644 --- a/PhysX_3.4/Source/SimulationController/src/ScShapeInteraction.cpp +++ b/PhysX_3.4/Source/SimulationController/src/ScShapeInteraction.cpp @@ -844,6 +844,23 @@ void Sc::ShapeInteraction::updateState(const PxU8 externalDirtyFlags) mManager->setDominance1(cdom.dominance1); } + if (dirtyFlags & InteractionDirtyFlag::eBODY_KINEMATIC) + { + //Kinematic flags changed - clear flag for kinematic on the pair + Sc::BodySim* bs1 = shapeSim1.getBodySim(); + if (bs1 != NULL) + { + if (bs1->isKinematic()) + { + mManager->getWorkUnit().flags |= PxcNpWorkUnitFlag::eHAS_KINEMATIC_ACTOR; + } + else + { + mManager->getWorkUnit().flags &= (~PxcNpWorkUnitFlag::eHAS_KINEMATIC_ACTOR); + } + } + } + // Update skin width if (dirtyFlags & InteractionDirtyFlag::eREST_OFFSET) { -- cgit v1.2.3