Exemplo n.º 1
0
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);
}
Exemplo n.º 3
0
		phyMgr::~phyMgr()
		{
			removeAllBodies();
			delete _dynamics_world;
			delete _solver;
			delete _broad_phase;
			delete _dispatcher;
			delete _collision_configuration;
		}
Exemplo n.º 4
0
PhysicsWorld::~PhysicsWorld()
{
    removeAllJoints(true);
    removeAllBodies();
    if (_cpSpace)
    {
        cpSpaceFree(_cpSpace);
    }
    CC_SAFE_DELETE(_debugDraw);
}
Exemplo n.º 5
0
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);
}
Exemplo n.º 6
0
void BulletWrapper::destroy()
{
  removeAllBodies();

  delete m_DynamicsWorld;
  delete m_Solver;
  delete m_CollisionConfiguration;
  delete m_Dispatcher;
  delete m_Broadphase;

  zero();
}
Exemplo n.º 7
0
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);
}
Exemplo n.º 8
0
	//------------------------------------------------------------------------
	SkyDef::~SkyDef()
	{
		removeFog();
		removeAllFogControllers();
		removeFarClippingPlane();
		removeAllFarClippingPlaneControllers();
		removeBackground();
		removeAllBackgroundControllers();
		removeAllAtmospheres();
		removeAllAtmosphereControllers();
		removeAllBodies();
		removeAllBodyControllers();
		removeAllCloudLayers();
		removeAllCloudLayerControllers();
		removeAllMaterialControllers();
		removeAllSounds();
		removeAllSoundControllers();
		removeAllOverlays();
		removeAllOverlayControllers();
	}