getPosition method

Vector2 getPosition()

The world position of the body. Avoid creating bodies at the origin since this can lead to many overlapping shapes.

Implementation

Vector2 getPosition() {
  return position;
}