Skip to content

Class

SmoothOccupancyEntry2D

Generated GDScript class reference for GridPlacement.SmoothOccupancyEntry2D.

Status
Current
Version
v6.0
Source updated
Active v6.0 guide line from Grid Placement repo
Generated on
2026-09-01

Entry record for the smooth occupancy registry. Carries the placed node identity, world-space footprint, position, and rotation. Used by [SmoothOccupancyRegistry2D] to track and query occupied space for smooth/free placement mode.

Source: addons/grid_placement/services/smooth_occupancy_entry_2d.gd

Syntax

class SmoothOccupancyEntry2D extends RefCounted

Members

NameKindSummary
placed_nodePropertyWeak reference to the placed node. Freed nodes are cleaned up by [method SmoothOccupancyRegistry2D.clear_invalid_entries].
footprintPropertyWorld-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
is_nodeMethod