Change hardcoded ODE total frame time to match the default total frame time (0.09375 -> 0.089).

No apparant ill effects - because the default stepsize is 0.2, there are still 5 physics steps per physics frame.
This is a precursor to using the elapsed value passed in (and now changeable in config).
remove-scene-viewer
Justin Clark-Casey (justincc) 2011-10-14 21:07:57 +01:00
parent 83c7b9b609
commit 4bfc2f5cde
1 changed files with 1 additions and 1 deletions

View File

@ -2658,7 +2658,7 @@ Console.WriteLine("AddPhysicsActorTaint to " + taintedprim.Name);
// HACK: Using a time dilation of 1.0 to debug rubberbanding issues // HACK: Using a time dilation of 1.0 to debug rubberbanding issues
//m_timeDilation = Math.Min((step_time / ODE_STEPSIZE) / (0.09375f / ODE_STEPSIZE), 1.0f); //m_timeDilation = Math.Min((step_time / ODE_STEPSIZE) / (0.09375f / ODE_STEPSIZE), 1.0f);
step_time = 0.09375f; step_time = 0.089f;
while (step_time > 0.0f) while (step_time > 0.0f)
{ {