getWorldVector method

Vector2 getWorldVector (Vector2 localVector)

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

@param localVector a vector fixed in the body. @return the same vector expressed in world coordinates.

Implementation

Vector2 getWorldVector(Vector2 localVector) {
  Vector2 out = new Vector2.zero();
  getWorldVectorToOut(localVector, out);
  return out;
}