Skip to content

Class

SmoothOccupancyRegistry2D

Generated GDScript class reference for GridPlacement.SmoothOccupancyRegistry2D.

Status
Draft
Version
v6.0
Updated
Development docs generated from GDScript source

This is unreleased documentation in active development. APIs, class names, and behavior may change before the final release.

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