Reduce internal physics timestep to test if collision handling improves.

This commit is contained in:
hiker
2017-02-15 23:56:43 +11:00
parent 8e8de3c5e2
commit 30cff00757

View File

@@ -152,7 +152,7 @@ void Physics::update(float dt)
// Maximum of three substeps. This will work for framerate down to
// 20 FPS (bullet default frequency is 60 HZ).
m_dynamics_world->stepSimulation(dt, 3);
m_dynamics_world->stepSimulation(dt, 6, 1.0f/120.0f);
// Now handle the actual collision. Note: flyables can not be removed
// inside of this loop, since the same flyables might hit more than one