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.EntryMembers
| Name | Kind | Summary |
|---|---|---|
footprint | Property | 2D 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. |
position | Property | World position of the placed object. |
rotation | Property | Rotation in radians. |
get_world_rect | Method | |
copy_for | Method | |
to_record | Method | |
to_debug_record | Method | |
can_occupy | Method | |
register | Method | |
update | Method |