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