public static void DeleteAndDisposeAllConstraints(this DynamicsWorld world)
 {
     for (int i = 0; i < world.NumConstraints; i++)
     {
         TypedConstraint constraint = world.GetConstraint(i);
         world.DeleteAndDisposeConstraint(constraint);
     }
 }