public override void Dispose() { base.Dispose(); Box2DWorldComponent.Remove(Body); }
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); }