예제 #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);
        }
예제 #2
0
파일: Physics.cs 프로젝트: whztt07/vengine
 public void RemoveBody(PhysicalBody body)
 {
     World.RemoveRigidBody(body.Body);
     ActiveBodies.Remove(body);
 }
예제 #3
0
파일: Physics.cs 프로젝트: whztt07/vengine
 public void AddBody(PhysicalBody body)
 {
     World.AddRigidBody(body.Body);
     ActiveBodies.Add(body);
 }
예제 #4
0
파일: Physics.cs 프로젝트: whztt07/vengine
 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;
 }
예제 #5
0
 public void RemoveBody(PhysicalBody body)
 {
     //World.RemoveRigidBody(body.Body);
     RemoveBodyQueue.Add(body);
     ActiveBodies.Remove(body);
 }
예제 #6
0
 public void AddBody(PhysicalBody body)
 {
     //World.AddRigidBody(body.Body);
     AddBodyQueue.Add(body);
     ActiveBodies.Add(body);
 }