Skip to content

Class

PlacementCachedShapeCast2D

Generated GDScript class reference for GridPlacement.PlacementCachedShapeCast2D.

Status
Current
Version
v6.1.0
Source updated
2026-09-24
Generated on
2026-09-23

Base ShapeCast2D providing thread-safe, immediate collision caching. Under threaded physics (physics/2d/run_on_separate_thread=true), calling Godot's built-in collision methods outside _physics_process can cause thread safety issues or return stale data. This base class manages a thread-safe cache populated safely during the physics process frame.

Source: addons/grid_placement/base/placement_cached_shape_cast_2d.gd

Syntax

class PlacementCachedShapeCast2D extends ShapeCast2D

Members

NameKindSummary
resolve_placement_dependenciesMethod
resolve_placement_runtimeMethod
cached_is_collidingProperty
cached_collidersProperty
cached_global_transformPropertyTracks the global transform at which the collision cache was last updated.
is_in_physics_processMethod
force_shapecast_updateMethod
get_cache_age_framesMethod
is_cache_staleMethod