viewportPositionToGlobal method

Offset viewportPositionToGlobal(
  1. Offset position
)

Implementation

Offset viewportPositionToGlobal(Offset position) {
  if (!hasGameRef) return position;
  return gameRef.viewportPositionToGlobal(position.toVector2()).toOffset();
}