public PRigidbody AddRigidBody(PVector3 position, PVector3 velocity, double mass) { var body = new PRigidbody(position, this) { Mass = mass }; RigidBodies.Add(body); CheckGRBDistances(); body.Trajectory.UpdateCurve(velocity); return(body); }
public void DeleteRigidBody(PRigidbody rbody) { RigidBodies.Remove(rbody); CheckGRBDistances(); }
public PTrajectory(PRigidbody body, PWorld world) { Body = body; World = world; }