Exemplo n.º 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));
 }
Exemplo n.º 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);
 }