MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / syncNoSimSwitch

Method syncNoSimSwitch

physx/source/physx/src/buffering/ScbRigidObject.h:487–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487PX_FORCE_INLINE void RigidObject::syncNoSimSwitch(const Buf& buf, Sc::RigidCore& rc, bool isDynamic)
488{
489 const PxActorFlags oldFlags = rc.getActorFlags();
490 const bool oldNoSim = oldFlags.isSet(PxActorFlag::eDISABLE_SIMULATION);
491 const bool newNoSim = buf.mActorFlags.isSet(PxActorFlag::eDISABLE_SIMULATION);
492
493 if(oldNoSim && (!newNoSim))
494 getScbScene()->switchRigidFromNoSim(*this, isDynamic);
495 else if((!oldNoSim) && newNoSim)
496 getScbScene()->switchRigidToNoSim(*this, isDynamic);
497}
498
499PX_FORCE_INLINE void RigidObject::copyResetFilterShapes(Scb::Shape** shapePtrs, Scb::Shape*const* oldShapes, PxU32 oldShapeCount, Scb::Shape*const* newShapes, PxU32 newShapeCount)
500{

Callers

nothing calls this directly

Calls 5

getScbSceneFunction · 0.85
isSetMethod · 0.80
switchRigidFromNoSimMethod · 0.80
switchRigidToNoSimMethod · 0.80
getActorFlagsMethod · 0.45

Tested by

no test coverage detected