예제 #1
0
파일: Robot.cs 프로젝트: snoozbuster/ld28
 public override void OnRemovalFromSpace(BEPUphysics.ISpace oldSpace)
 {
     base.OnRemovalFromSpace(oldSpace);
     foreach (Laser l in lasers)
     {
         oldSpace.Remove(l);
     }
 }
예제 #2
0
 public override void OnRemovalFromSpace(BEPUphysics.ISpace oldSpace)
 {
     base.OnRemovalFromSpace(oldSpace);
     foreach (Door d in doors)
     {
         oldSpace.Remove(d);
     }
 }
예제 #3
0
 public override void OnAdditionToSpace(BEPUphysics.ISpace newSpace)
 {
     base.OnAdditionToSpace(newSpace);
     newSpace.Add(r1);
     newSpace.Add(r2);
     if (Inactive)
     {
         newSpace.Remove(this);
     }
 }
예제 #4
0
 public override void OnRemovalFromSpace(BEPUphysics.ISpace oldSpace)
 {
     base.OnRemovalFromSpace(oldSpace);
     oldSpace.Remove(lineJoint);
 }