Skip to content

Class

SmoothOccupancyRegistry2D

Generated GDScript class reference for GridPlacement.SmoothOccupancyRegistry2D.

Status
Current
Version
v6.3.0
Source updated
2026-10-29
Generated on
2026-10-29

6.3. These pages document the 6.3 release, where placeable is now entry (what changed) and PlacementOwner is deprecated (migration). Still on 6.2? Your version's guides ship inside the plugin itself, under addons/grid_placement/guides/; the 6.2 URLs on this site now redirect to this series.

2D smooth occupancy registry. Authoritative spatial tracking for smooth/free placement mode. This is the primary validation layer; a physics overlap query is optional, enabled by a non-zero SmoothPlacementService.occupied_mask. 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 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