Skip to content
ct

Class

SmoothOccupancyEntry2D

Generated GDScript class reference for GridPlacement.SmoothOccupancyEntry2D.

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.

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