| 591 | } |
| 592 | |
| 593 | void 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 |
| 619 | static void applyBombForce(PxRigidActor* actor, const PxVec3& actorPos, const PxVec3& bombPos, PxReal bombRange) |