refactor: unindent the OdeScene.Simulate() loop to ignore the long commented out ifs and locks
This is to make it more readable.bulletsim
parent
8c3eb324c4
commit
9c6227da66
|
@ -2687,6 +2687,7 @@ Console.WriteLine("AddPhysicsActorTaint to " + taintedprim.Name);
|
|||
//if (!ode.lockquery())
|
||||
//{
|
||||
// ode.dlock(world);
|
||||
|
||||
try
|
||||
{
|
||||
// Insert, remove Characters
|
||||
|
@ -3091,8 +3092,10 @@ Console.WriteLine("AddPhysicsActorTaint to " + taintedprim.Name);
|
|||
fwriter.WriteLine(header);
|
||||
fwriter.Close();
|
||||
}
|
||||
|
||||
d.WorldExportDIF(world, fname, physics_logging_append_existing_logfile, prefix);
|
||||
}
|
||||
|
||||
latertickcount = Util.EnvironmentTickCount() - tickCountFrameRun;
|
||||
|
||||
// OpenSimulator above does 10 fps. 10 fps = means that the main thread loop and physics
|
||||
|
@ -3694,6 +3697,7 @@ Console.WriteLine("AddPhysicsActorTaint to " + taintedprim.Name);
|
|||
//d.CloseODE();
|
||||
}
|
||||
}
|
||||
|
||||
public override Dictionary<uint, float> GetTopColliders()
|
||||
{
|
||||
Dictionary<uint, float> returncolliders = new Dictionary<uint, float>();
|
||||
|
|
Loading…
Reference in New Issue