updated demos to show debug display with new AllBulletDemos (AllInOne),

added btDynamicsWorld::getWorldType
This commit is contained in:
ejcoumans
2007-10-25 07:07:12 +00:00
parent 2a75e186ec
commit fd1e672fcb
21 changed files with 133 additions and 21 deletions

View File

@@ -372,6 +372,14 @@ void DemoApplication::keyboardCallback(unsigned char key, int x, int y)
}
void DemoApplication::setDebugMode(int mode)
{
m_debugMode = mode;
if (getDynamicsWorld() && getDynamicsWorld()->getDebugDrawer())
getDynamicsWorld()->getDebugDrawer()->setDebugMode(mode);
}
void DemoApplication::specialKeyboardUp(int key, int x, int y)
{