Chris' Tutorials
Docs/Grid Placement

Class

TargetingShapeCast2D

Generated GDScript class reference for GridPlacement.TargetingShapeCast2D.

StatusDraft
Versionv6.0
UpdatedDevelopment docs generated from GDScript source

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

Draft — Unreleased:This page is in active development. APIs, class names, and behavior may change before the release is finalized. Use it as a preview of what's coming — not as a stable integration target.

Encapsulates ShapeCast2D-based targeting logic as a reusable component

Source: addons/grid_placement/systems/grid_targeting/grid_positioner/targeting_shape_cast_2d.gd

Syntax

class TargetingShapeCast2D extends res://addons/grid_placement/base/placement_cached_shape_cast_2d.gd

Members

NameKindSummary
debug_log_collisionsPropertyLocal debug flag: can be toggled per-instance in editor or by code
resolve_placement_dependenciesMethod
config_msgProperty
update_targetMethod
old_targetProperty
use_cachePropertyUse cached values when called outside _physics_process (thread-safe). When _in_physics_process is true, force_shapecast_update() was just called so cached values are fresh and is_colliding() is safe to call. Outside _physics_process (e.g. tests), the space may be locked so we must use cached values populated by a prior force_shapecast_update() call.
currently_collidingProperty
raw_colliderProperty
promoted_targetProperty
formattedProperty
layer_namesProperty
layer_valueProperty
layer_numberProperty
layer_nameProperty
nodeProperty
depthProperty

Source

addons/grid_placement/systems/grid_targeting/grid_positioner/targeting_shape_cast_2d.gd

Plugin docs root:gdscript/plugins/grid_placement_dev/docs