polygon_indicator_overlap_threshold_test AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
Polygon Indicator Overlap Threshold Test
Tests that indicators are only created on tiles with sufficient polygon overlap,
preventing extra indicators from appearing on tiles with negligible overlap.
This regression test reproduces and validates the fix for the in-game bug
where indicators appeared on tiles below the minimum overlap threshold.
Source File: /addons/grid_building/test/rules/indicators/polygon_indicator_overlap_threshold_test.gd
Extends: GdUnitTestSuite
Properties Property: runner: GdUnitSceneRunnerPrivate Properties Property: _env: [BuildingTestEnvironment](./building-test-environment/) (private)Property: _manager: [IndicatorManager](./indicator-manager/) (private)Property: _map: TileMapLayer (private)Property: _state: [GridTargetingState](./grid-targeting-state/) (private)Property: _positioner: Node2D (private)Constants Constant: TILE_SIZE: Vector2 = Vector2(16, 16)Constant: MIN_OVERLAP_RATIO: float = 0.12Constant: COLLISION_LAYER_MASK: int = 1 << 0Public Methods before before_test after_test after collect_indicators 1
collect_indicators(pm: IndicatorManager) -> Array[RuleCheckIndicator]
find_child_polygon 1
find_child_polygon(root: Node) -> CollisionPolygon2D
test_polygon_preview_indicators_respect_min_overlap_ratio 1
test_polygon_preview_indicators_respect_min_overlap_ratio() -> void
Failing regression: with current mapper settings, indicators are created on tiles below a reasonable overlap threshold.
Grid Building v5.0.8 | Generated 24/05/2026