Exemplo n.º 1
0
 public override void Dispose()
 {
     base.Dispose();
     Box2DWorldComponent.Remove(Body);
 }
Exemplo n.º 2
0
 public Body2dComponent CreateBody(float hx, float hy)
 {
     Box2DWorldComponent = Parent.Domain.GetComponent <Box2dWorldComponent>();
     this.Body           = Box2DWorldComponent.CreateBoxCollider(this, Position.x, Position.y, hx, hy);
     return(this);
 }