getLocalPoint method

Vector2 getLocalPoint (Vector2 worldPoint)

Gets a local point relative to the body's origin given a world point.

@param a point in world coordinates. @return the corresponding local point relative to the body's origin.

Implementation

Vector2 getLocalPoint(Vector2 worldPoint) {
  Vector2 out = new Vector2.zero();
  getLocalPointToOut(worldPoint, out);
  return out;
}