more fixes, related to introduction of btMotionState, and using realtime timestep

This commit is contained in:
ejcoumans
2006-10-18 04:01:07 +00:00
parent 3a6942fb91
commit 33b3ec94f1
7 changed files with 38 additions and 18 deletions

View File

@@ -185,7 +185,9 @@ void BspDemo::clientMoveAndDisplay()
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
m_dynamicsWorld->stepSimulation(deltaTime);
float dt = m_clock.getTimeMilliseconds() * 0.001f;
m_clock.reset();
m_dynamicsWorld->stepSimulation(dt);
renderme();