targeting_debug_user_mask10_test

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Debug test for user-reported issue: highlighting not working with mask 10 Reproduces scenario where TargetingShapeCast2D detects Area2D (ColTargetHighlighter) and StaticBody2D (GeyserPump) but target highlighting doesn’t work

Source File: /addons/grid_building/test/positioning/targeting/targeting_debug_user_mask10_test.gd

Extends: GdUnitTestSuite

Public Methods

test_debug_user_reported_mask_10_scenario

1
test_debug_user_reported_mask_10_scenario() -> void

test_mask_10_should_NOT_detect_layer_1_objects

1
test_mask_10_should_NOT_detect_layer_1_objects() -> void

binary_string

1
binary_string(mask: int) -> String

test_debug_promote_to_targetable_root_with_area2d_parent

1
test_debug_promote_to_targetable_root_with_area2d_parent() -> void

test_debug_collision_exclusions_interference

1
test_debug_collision_exclusions_interference() -> void

Private Methods

_create_shape_cast

1
2
3
4
5
_create_shape_cast(
    container: GBCompositionContainer,
    shape_size: Vector2,
    collision_mask: int = 10
) -> TargetingShapeCast2D

Flags: private

Creates a TargetingShapeCast2D with the given shape size and collision mask.


_create_target_static_body

1
2
3
4
5
_create_target_static_body(
    layer: int,
    shape_size: Vector2,
    name: String = "TargetBody"
) -> StaticBody2D

Flags: private

Creates a StaticBody2D target object (like GeyserPump) on the given layer


_create_highlighter_area

1
2
3
4
5
_create_highlighter_area(
    layer: int,
    shape_size: Vector2,
    name: String = "ColTargetHighlighter"
) -> Area2D

Flags: private

Creates an Area2D (like ColTargetHighlighter) on the given layer



Grid Building v5.0.8 | Generated 24/05/2026