public static bool Decommission(NewtonianRigidBody body) { if (body == null) { throw new System.ArgumentNullException("You can not decommision a null body"); } return(bodies.Remove(body)); }
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); }