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

Method onShutdown

physx/samples/samplebridges/SampleBridges.cpp:593–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591}
592
593void SampleBridges::onShutdown()
594{
595 {
596 PxSceneWriteLock scopedLock(*mScene);
597#ifdef CCT_ON_BRIDGES
598 DELETESINGLE(mCCTCamera);
599 #ifdef PLATFORMS_AS_OBSTACLES
600 SAFE_RELEASE(mObstacleContext);
601 DELETEARRAY(mBoxObstacles);
602 #endif
603 mControllerManager->release();
604#endif
605 const size_t nbJoints = mJoints.size();
606 for(PxU32 i=0;i<nbJoints;i++)
607 if(mJoints[i])
608 mJoints[i]->release();
609 mJoints.clear();
610 }
611
612
613 mPlatformManager.release();
614
615 PhysXSample::onShutdown();
616}
617
618// PT: very crude attempt here, just to have something running
619static void applyBombForce(PxRigidActor* actor, const PxVec3& actorPos, const PxVec3& bombPos, PxReal bombRange)

Callers

nothing calls this directly

Calls 3

releaseMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected