getWorldPoint method

Vector2 getWorldPoint (Vector2 localPoint)

Get the world coordinates of a point given the local coordinates.

@param localPoint a point on the body measured relative the the body's origin. @return the same point expressed in world coordinates.

Implementation

Vector2 getWorldPoint(Vector2 localPoint) {
  Vector2 v = new Vector2.zero();
  getWorldPointToOut(localPoint, v);
  return v;
}