consolidated_collision_and_rules_tests

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Source File: /addons/grid_building/test/collision/detection/consolidated_collision_and_rules_tests.gd

Extends: GdUnitTestSuite

Constants

  • Constant: GodotTestFactory = preload("res://addons/grid_building/test/factories/godot_test_factory.gd")
  • Constant: CollisionGeometryCalculator = preload("res://addons/grid_building/placement/manager/components/collision_geometry_calculator.gd")
  • Constant: RuleResult = preload("res://addons/grid_building/placement/placement_rules/rule_result.gd")
  • Constant: STANDARD_TILE_SIZE: Vector2 = Vector2(16, 16)
  • Constant: SINGLE_POINT_POS: Vector2 = Vector2(8, 8)
  • Constant: LARGE_RECTANGLE_SIZE: Vector2 = Vector2(32, 32)
  • Constant: TEST_ORIGIN: Vector2 = Vector2(0, 0)
  • Constant: TEST_ORIGIN_TILE: Vector2i = Vector2i(0, 0)
  • Constant: TILE_1_0: Vector2i = Vector2i(1, 0)
  • Constant: TILE_0_1: Vector2i = Vector2i(0, 1)
  • Constant: TILE_1_1: Vector2i = Vector2i(1, 1)
  • Constant: EXPECTED_2X2_TILE_COUNT: int = 4
  • Constant: EDGE_CASE_SIZE: float = 0.1
  • Constant: EDGE_CASE_TOLERANCE: float = 0.01
  • Constant: LINE_SEGMENT_LENGTH: float = 10.0
  • Constant: BOUNDARY_POINT_POS: Vector2 = Vector2(15.9, 15.9)
  • Constant: BOUNDARY_TOLERANCE: Vector2 = Vector2(0.01, 0.01)

Public Methods

get_tile_shape_16x16

1
get_tile_shape_16x16() -> PackedVector2Array

Flags: static


get_separated_shape_16x16

1
get_separated_shape_16x16() -> PackedVector2Array

Flags: static


get_overlapping_shape_16x16

1
get_overlapping_shape_16x16() -> PackedVector2Array

Flags: static


test_collision_calculator_tile_overlap_empty

1
test_collision_calculator_tile_overlap_empty() -> void

test_collision_calculator_single_point

1
test_collision_calculator_single_point() -> void

test_collision_calculator_rectangle_overlap

1
test_collision_calculator_rectangle_overlap() -> void

test_collision_detection_no_collision

1
test_collision_detection_no_collision() -> void

test_collision_detection_with_collision

1
test_collision_detection_with_collision() -> void

test_get_polygon_bounds_empty

1
test_get_polygon_bounds_empty() -> void

test_get_polygon_bounds_single_point

1
test_get_polygon_bounds_single_point() -> void

test_get_polygon_bounds_rectangle

1
test_get_polygon_bounds_rectangle() -> void

test_polygon_overlaps_rect_no_overlap

1
test_polygon_overlaps_rect_no_overlap() -> void

test_polygon_overlaps_rect_with_overlap

1
test_polygon_overlaps_rect_with_overlap() -> void

test_point_in_polygon_inside

1
test_point_in_polygon_inside() -> void

test_point_in_polygon_outside

1
test_point_in_polygon_outside() -> void

test_lines_intersect_crossing

1
test_lines_intersect_crossing() -> void

test_lines_intersect_parallel

1
test_lines_intersect_parallel() -> void

test_polygons_intersect_overlapping

1
test_polygons_intersect_overlapping() -> void

test_polygons_intersect_separate

1
test_polygons_intersect_separate() -> void

test_debug_edge_case_tiny_polygon

1
test_debug_edge_case_tiny_polygon() -> void

test_debug_edge_case_degenerate_shapes

1
test_debug_edge_case_degenerate_shapes() -> void

test_collisions_check_rule_validation

1
test_collisions_check_rule_validation() -> void


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