Example #1
0
 /// Apply an impulse on the body at the given point in the transform's local coords.
 public void ApplyImpulse(Vector2 impulse, Vector2 localPosition)
 {
     if (_handle != IntPtr.Zero)
     {
         var offset = _transform.TransformDirection(localPosition);
         CP.cpBodyApplyImpulse(_handle, impulse, offset);
     }
 }