示例#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);
 }