コード例 #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);
 }