Example #1
0
 /// <summary>
 /// Remove all the elements of a path from the physics simulator.
 /// </summary>
 /// <param name="physicsSimulator"></param>
 public void RemoveFromPhysicsSimulator(PhysicsSimulator physicsSimulator)
 {
     foreach (Body body in _bodies)
         physicsSimulator.Remove(body);
     foreach (Geom geom in _geoms)
         physicsSimulator.Remove(geom);
     foreach (Joint joint in _joints)
         physicsSimulator.Remove(joint);
     foreach (Spring spring in _springs)
         physicsSimulator.Remove(spring);
 }