Camera
Functions in camera.
Get Active Pos
get_active_pos() → Vec2Get the position of the currently active camera. If no camera is active, returns (0, 0).
Returns
Vec2 : The position of the active camera.
World To Screen
world_to_screen(world_pos: Vec2) → Vec2Convert a world position to a screen position using the active camera's translation.
Args
world_pos: The world position to convert.
Returns
Vec2 : The resulting screen position.