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