BulletSim: normalize physics FPS to 45 (for real this time).
parent
a86fedd25f
commit
5b82f18d64
|
@ -582,8 +582,8 @@ public class BSScene : PhysicsScene, IPhysicsParameters
|
|||
// 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.
|
||||
// We multiply by 45 to give a recognizable running rate (45 or less).
|
||||
return numSubSteps * m_fixedTimeStep * 1000 * 45;
|
||||
// return timeStep * 1000 * 45;
|
||||
return numSubSteps * m_fixedTimeStep * 1000 * 45;
|
||||
// return timeStep * 1000 * 45;
|
||||
}
|
||||
|
||||
// Something has collided
|
||||
|
|
Loading…
Reference in New Issue