Camera management and coordinate conversion
get_active_pos() → Vec2get_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.
get_active_angle() → floatget_active_angle() → floatGet the angle of the currently active camera in radians. If no camera is active, returns 0.
Returns
float : The angle of the active camera in radians.
world_to_screen(world_pos: Vec2) → Vec2world_to_screen(world_pos: Vec2) → Vec2Convert a world position to a screen position using the active camera.
Args
world_pos : The world position to convert.Returns
Vec2 : The resulting screen position.