more fixes, related to introduction of btMotionState, and using realtime timestep
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user