Browse Source

test: refine physics timestep.

legacy
Sam Hocevar sam 12 years ago
parent
commit
f3b61c9616
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      test/BtPhysTest.cpp

+ 3
- 1
test/BtPhysTest.cpp View File

@@ -208,7 +208,9 @@ void BtPhysTest::TickGame(float seconds)
///step the simulation
if (m_bt_world)
{
m_bt_world->stepSimulation(seconds);
int steps = (int)(seconds / 0.005f);
for (int i = 0; i < steps; i++)
m_bt_world->stepSimulation(seconds / steps);
//optional but useful: debug drawing
//m_bt_world->debugDrawWorld();
}


Loading…
Cancel
Save