public override void Taps(Component aspect) { if (aspect is JitterBody) { JitterBody body = aspect as JitterBody; world.RemoveBody(body.Rigidbody); } }
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); } }