Ejemplo n.º 1
0
        public PhysicalBody CreateBody(float mass, TransformationManager startTransform, CollisionShape shape)
        {
            var rb = CreateRigidBody(mass, startTransform.GetWorldTransform(), shape);
            var pb = new PhysicalBody(rb, shape, startTransform);

            return(pb);
        }
Ejemplo n.º 2
0
 public void RemoveBody(PhysicalBody body)
 {
     World.RemoveRigidBody(body.Body);
     ActiveBodies.Remove(body);
 }
Ejemplo n.º 3
0
 public void AddBody(PhysicalBody body)
 {
     World.AddRigidBody(body.Body);
     ActiveBodies.Add(body);
 }
Ejemplo n.º 4
0
 public PhysicalBody CreateBody(float mass, TransformationManager startTransform, CollisionShape shape)
 {
     var rb = CreateRigidBody(mass, startTransform.GetWorldTransform(), shape);
     var pb = new PhysicalBody(rb, shape, startTransform);
     return pb;
 }
Ejemplo n.º 5
0
 public void RemoveBody(PhysicalBody body)
 {
     //World.RemoveRigidBody(body.Body);
     RemoveBodyQueue.Add(body);
     ActiveBodies.Remove(body);
 }
Ejemplo n.º 6
0
 public void AddBody(PhysicalBody body)
 {
     //World.AddRigidBody(body.Body);
     AddBodyQueue.Add(body);
     ActiveBodies.Add(body);
 }