Skip to content

TargetingUpdateLogic

Pure logic component for targeting state updates Extracted from TargetingShapeCast2D to enable unit testing without physics dependencies

debug_log_collisions: bool = false

Logger for diagnostics

Targeting state to update

Enable collision logging for debugging

func _init( p_logger: GBLogger, p_targeting_state: GridTargetingState ) -> void

Initialize with dependencies

func update_target( is_colliding: bool, collider: Node ) -> bool

Update targeting state based on collision status is_colliding: Whether a collision is currently detected collider: The colliding object (can be null if not colliding) Returns: True if target was updated, false otherwise

addons/grid_building/systems/grid_targeting/grid_positioner/targeting_update_logic.gd


This API reference is automatically generated from the plugin source code. For implementation examples and usage guides, see the guides section.