Skip to content

GBCameraUtils

Camera and viewport projection utilities for world coordinate calculations.

Pure, static helpers used across systems (e.g., GridPositioner) and tests. These functions are deterministic and do not touch the scene tree beyond reading data from provided Camera2D/Viewport instances.

static func proj_method_to_string( p_method: ProjectionMethod ) -> String

Convert a projection method enum to a readable string label

static func get_center_of_camera_viewport( cam: Camera2D ) -> Vector2

Helper to get the center of the camera’s viewport rectangle

addons/grid_building/utils/gb_camera_utils.gd


This API reference is automatically generated from the plugin source code. For implementation examples and usage guides, see the guides section.