Exemplo 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);
        }
Exemplo n.º 2
0
 public void RemoveBody(PhysicalBody body)
 {
     World.RemoveRigidBody(body.Body);
     ActiveBodies.Remove(body);
 }
Exemplo n.º 3
0
 public void AddBody(PhysicalBody body)
 {
     World.AddRigidBody(body.Body);
     ActiveBodies.Add(body);
 }
Exemplo 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;
 }
Exemplo n.º 5
0
 public void RemoveBody(PhysicalBody body)
 {
     //World.RemoveRigidBody(body.Body);
     RemoveBodyQueue.Add(body);
     ActiveBodies.Remove(body);
 }
Exemplo n.º 6
0
 public void AddBody(PhysicalBody body)
 {
     //World.AddRigidBody(body.Body);
     AddBodyQueue.Add(body);
     ActiveBodies.Add(body);
 }