예제 #1
0
 public override void Taps(Component aspect)
 {
     if (aspect is JitterBody)
     {
         JitterBody body = aspect as JitterBody;
         world.RemoveBody(body.Rigidbody);
     }
 }
예제 #2
0
 public override void Reveille(Component aspect)
 {
     if (aspect is JitterBody)
     {
         JitterBody body = aspect as JitterBody;
         body.Rigidbody          = new RigidBody(new SphereShape(1f));
         body.Rigidbody.Position = Convert(Entity.Get <Transform>(aspect.Id).Position.Value);
         world.AddBody(body.Rigidbody);
     }
 }