PhysicsWorld::~PhysicsWorld() { removeAllJoints(true); removeAllBodies(); CC_SAFE_DELETE(_info); CC_SAFE_DELETE(_debugDraw); }
PhysicsWorld::~PhysicsWorld() { removeAllJoints(true); removeAllBodies(); CC_SAFE_RELEASE(_delayRemoveBodies); CC_SAFE_RELEASE(_delayAddBodies); CC_SAFE_DELETE(_info); CC_SAFE_DELETE(_debugDraw); }
phyMgr::~phyMgr() { removeAllBodies(); delete _dynamics_world; delete _solver; delete _broad_phase; delete _dispatcher; delete _collision_configuration; }
PhysicsWorld::~PhysicsWorld() { removeAllJoints(true); removeAllBodies(); if (_cpSpace) { cpSpaceFree(_cpSpace); } CC_SAFE_DELETE(_debugDraw); }
void BulletWrapper::utilResetScene(const EigenTypes::Vector3f& refPosition) { for (unsigned int i = 0; i < m_HandRepresentations.size(); i++) { destroyHandRepresentationFromWorld(m_HandRepresentations[i]); } m_HandRepresentations.clear(); removeAllBodies(); utilSetupScene(refPosition); }
void BulletWrapper::destroy() { removeAllBodies(); delete m_DynamicsWorld; delete m_Solver; delete m_CollisionConfiguration; delete m_Dispatcher; delete m_Broadphase; zero(); }
PhysicsWorld::~PhysicsWorld() { removeAllJoints(true); removeAllBodies(); if (_cpSpace) { #if CC_TARGET_PLATFORM == CC_PLATFORM_WINRT || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 cpSpaceFree(_cpSpace); #else cpHastySpaceFree(_cpSpace); #endif } CC_SAFE_RELEASE_NULL(_debugDraw); }
//------------------------------------------------------------------------ SkyDef::~SkyDef() { removeFog(); removeAllFogControllers(); removeFarClippingPlane(); removeAllFarClippingPlaneControllers(); removeBackground(); removeAllBackgroundControllers(); removeAllAtmospheres(); removeAllAtmosphereControllers(); removeAllBodies(); removeAllBodyControllers(); removeAllCloudLayers(); removeAllCloudLayerControllers(); removeAllMaterialControllers(); removeAllSounds(); removeAllSoundControllers(); removeAllOverlays(); removeAllOverlayControllers(); }