예제 #1
0
 public static bool Decommission(NewtonianRigidBody body)
 {
     if (body == null)
     {
         throw new System.ArgumentNullException("You can not decommision a null body");
     }
     return(bodies.Remove(body));
 }
예제 #2
0
 public static void Register(NewtonianRigidBody body)
 {
     if (body == null)
     {
         throw new System.ArgumentNullException("You can not register a null body to the pool");
     }
     bodies.Add(body);
 }