Example #1
0
        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);
        }
Example #2
0
 public void DeleteRigidBody(PRigidbody rbody)
 {
     RigidBodies.Remove(rbody);
     CheckGRBDistances();
 }
Example #3
0
 public PTrajectory(PRigidbody body, PWorld world)
 {
     Body  = body;
     World = world;
 }