Draft — Unreleased:This page is in active development. APIs, class names, and behavior may change before the release is finalized. Use it as a preview of what's coming — not as a stable integration target.
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.
Source: addons/grid_placement/utils/placement_camera_utils.gd
Syntax
class PlacementCameraUtils extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
ProjectionMethod | Field | Projection methods for screen to world conversion |
proj_method_to_string | Method | |
get_center_of_camera_viewport | Method | |
vp_rect | Property |
Source
addons/grid_placement/utils/placement_camera_utils.gd
Plugin docs root:gdscript/plugins/grid_placement_dev/docs