Skip to content

Class

PlacementCachedShapeCast2D

Generated GDScript class reference for GridPlacement.PlacementCachedShapeCast2D.

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.

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