- removed obsolete/unused method in btTransform.h

- enable pause mode in AllBulletDemos.
- allow verbose output of time stepping in CcdPhysicsDemo
This commit is contained in:
ejcoumans
2007-10-27 00:17:20 +00:00
parent 1b7e5ad638
commit c36133cbd5
4 changed files with 21 additions and 11 deletions

View File

@@ -146,14 +146,17 @@ void SimulationLoop()
demo->setDebugMode(demo->getDebugMode() & (~btIDebugDraw::DBG_NoDeactivation));
}
if (demo->getDynamicsWorld()->getWorldType() == BT_DISCRETE_DYNAMICS_WORLD)
if (demo->getDynamicsWorld() && demo->getDynamicsWorld()->getWorldType() == BT_DISCRETE_DYNAMICS_WORLD)
{
btDiscreteDynamicsWorld* discreteWorld = (btDiscreteDynamicsWorld*) demo->getDynamicsWorld();
discreteWorld->getSolverInfo().m_numIterations = iterationCount;
}
demo->clientMoveAndDisplay();
if (!demo->isIdle())
demo->clientMoveAndDisplay();
else
demo->displayCallback();
/// DrawString(5, 15, entry->name);