Parcourir la source

test: refine physics timestep.

legacy
Sam Hocevar sam il y a 12 ans
Parent
révision
f3b61c9616
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. +3
    -1
      test/BtPhysTest.cpp

+ 3
- 1
test/BtPhysTest.cpp Voir le fichier

@@ -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();
}


Chargement…
Annuler
Enregistrer