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); }
public void RemoveBody(PhysicalBody body) { World.RemoveRigidBody(body.Body); ActiveBodies.Remove(body); }
public void AddBody(PhysicalBody body) { World.AddRigidBody(body.Body); ActiveBodies.Add(body); }
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; }
public void RemoveBody(PhysicalBody body) { //World.RemoveRigidBody(body.Body); RemoveBodyQueue.Add(body); ActiveBodies.Remove(body); }
public void AddBody(PhysicalBody body) { //World.AddRigidBody(body.Body); AddBodyQueue.Add(body); ActiveBodies.Add(body); }