BulletSim: normalize physics FPS to 45 (for real this time).

connector_plugin
Robert Adams 2012-10-10 16:53:58 -07:00
parent a86fedd25f
commit 5b82f18d64
1 changed files with 2 additions and 2 deletions

View File

@ -582,8 +582,8 @@ public class BSScene : PhysicsScene, IPhysicsParameters
// The physics engine returns the number of milliseconds it simulated this call. // The physics engine returns the number of milliseconds it simulated this call.
// These are summed and normalized to one second and divided by 1000 to give the reported physics FPS. // These are summed and normalized to one second and divided by 1000 to give the reported physics FPS.
// We multiply by 45 to give a recognizable running rate (45 or less). // We multiply by 45 to give a recognizable running rate (45 or less).
return numSubSteps * m_fixedTimeStep * 1000 * 45; return numSubSteps * m_fixedTimeStep * 1000 * 45;
// return timeStep * 1000 * 45; // return timeStep * 1000 * 45;
} }
// Something has collided // Something has collided