targeting_shape_cast_2d_unit_test
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
Unit tests for TargetingShapeCast2D component
Source File: /addons/grid_building/test/positioning/targeting/targeting_shape_cast_2d_unit_test.gd
Extends: GdUnitTestSuite
Public Methods
test_force_shapecast_update_no_crash
| |
test_is_colliding_and_get_collider_behavior
| |
test_targeting_detects_static_body_with_matching_collision_layers
| |
test_targeting_continuous_update_via_physics_process
| |
test_targeting_detects_object_without_leaving_collision_area
| |
test_targeting_updates_when_target_changes_to_null
| |
test_targeting_after_external_target_clear_while_hovering
| |
Private Methods
_create_shape_cast
| |
Flags: private
Creates a TargetingShapeCast2D with the given shape size and collision mask. Automatically resolves GB dependencies from the provided container.
_create_target_body
| |
Flags: private
Creates a StaticBody2D with a rectangular CollisionShape2D on the given layer.
Grid Building v5.0.8 | Generated 24/05/2026