Skip to content

Class

SmoothOccupancyRegistry2D

Generated GDScript class reference for GridPlacement.SmoothOccupancyRegistry2D.

Status
Current
Version
v6.2.0
Source updated
2026-09-24
Generated on
2026-10-01

2D smooth occupancy registry. Authoritative spatial tracking for smooth/free placement mode. This is the primary validation layer: physics queries are available separately as an optional [PhysicsOccupancyValidator] that users configure. Entry bookkeeping, snapshots and the projection rebuild live in [SmoothOccupancyRegistry]; this class owns the 2D geometry. Usage: var registry := SmoothOccupancyRegistry2D.new() if registry.can_occupy(position, footprint, rotation): registry.register(node, position, footprint, rotation)

Source: addons/grid_placement/services/smooth_occupancy_registry_2d.gd

Syntax

class SmoothOccupancyRegistry2D extends SmoothOccupancyRegistry.Entry

Members

NameKindSummary
footprintProperty2D entry: world-space footprint, position, and rotation in radians. World-space axis-aligned footprint (size in world units). Set from [member ScenePlacementEntry.footprint_2d] at commit time.
positionPropertyWorld position of the placed object.
rotationPropertyRotation in radians.
get_world_rectMethod
copy_forMethod
to_recordMethod
to_debug_recordMethod
can_occupyMethod
registerMethod
updateMethod