Ejemplo n.º 1
0
 /// Apply (accumulate) a force on the body at the given point in the transform's local coords.
 public void ApplyForce(Vector2 force, Vector2 localPosition)
 {
     if (_handle != IntPtr.Zero)
     {
         var offset = _transform.TransformDirection(localPosition);
         CP.cpBodyApplyForce(_handle, force, offset);
     }
 }