BulletSim: fix small bug where everything looked like it was colliding

before the first simulator step.
This commit is contained in:
Robert Adams
2013-07-17 10:19:44 -07:00
parent 894554faf6
commit 2c8bf4aaa6
2 changed files with 10 additions and 6 deletions

View File

@@ -97,6 +97,9 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
internal long m_simulationStep = 0; // The current simulation step.
public long SimulationStep { get { return m_simulationStep; } }
// A number to use for SimulationStep that is probably not any step value
// Used by the collision code (which remembers the step when a collision happens) to remember not any simulation step.
public static long NotASimulationStep = -1234;
internal float LastTimeStep { get; private set; } // The simulation time from the last invocation of Simulate()