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

Method releaseJoints

physx/samples/samplelargeworld/SampleLargeWorld.cpp:915–932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

913}
914
915void SampleLargeWorld::releaseJoints()
916{
917 PxSceneWriteLock scopedLock(*mScene);
918
919 const size_t nbJoints = mFixedJoints.size();
920
921 PxRigidActor* actor0 = NULL;
922 PxRigidActor* actor1 = NULL;
923
924 for(PxU32 i=0;i<nbJoints;i++)
925 {
926 mFixedJoints[i]->getActors(actor0, actor1);
927 setCollisionGroup( actor1, DEFAULT_COLLISION_GROUP );
928
929 mFixedJoints[i]->release();
930 }
931 mFixedJoints.clear();
932}
933
934bool SampleLargeWorld::readyToSyncCCT()
935{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
getActorsMethod · 0.45
releaseMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected