|
|
@ -151,7 +151,8 @@ namespace Physic
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PhysicEngine::PhysicEngine(BulletShapeLoader* shapeLoader)
|
|
|
|
PhysicEngine::PhysicEngine(BulletShapeLoader* shapeLoader) :
|
|
|
|
|
|
|
|
mDebugActive(0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Set up the collision configuration and dispatcher
|
|
|
|
// Set up the collision configuration and dispatcher
|
|
|
|
collisionConfiguration = new btDefaultCollisionConfiguration();
|
|
|
|
collisionConfiguration = new btDefaultCollisionConfiguration();
|
|
|
@ -203,6 +204,13 @@ namespace Physic
|
|
|
|
createDebugRendering();
|
|
|
|
createDebugRendering();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
mDebugDrawer->setDebugMode(mode);
|
|
|
|
mDebugDrawer->setDebugMode(mode);
|
|
|
|
|
|
|
|
mDebugActive = mode;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool PhysicEngine::toggleDebugRendering()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
setDebugRenderingMode(!mDebugActive);
|
|
|
|
|
|
|
|
return mDebugActive;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PhysicEngine::~PhysicEngine()
|
|
|
|
PhysicEngine::~PhysicEngine()
|
|
|
|