worldPoint method

Vector2 worldPoint(
  1. Vector2 localPoint
)

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

localPoint is a point on the body measured relative the the body's origin.

Implementation

Vector2 worldPoint(Vector2 localPoint) {
  return Transform.mulVec2(transform, localPoint);
}