worldVector method

Vector2 worldVector(
  1. Vector2 localVector
)

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

localVector is a vector fixed in the body.

Implementation

Vector2 worldVector(Vector2 localVector) {
  return Rot.mulVec2(transform.q, localVector);
}