shape_collision_validation_tests
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
Source File: /addons/grid_building/test/collision/detection/shape_collision_validation_tests.gd
Extends: GdUnitTestSuite
Properties
- Property:
test_container: [GBCompositionContainer](./gb-composition-container/)
Constants
Constant:
TILE_SIZE: Vector2 = Vector2(16, 16)Comprehensive parameterized test suite for collision detection Consolidates functionality from multiple debug tests into a single, maintainable test file Constants for test configuration
Constant:
BOUNDS_TOLERANCE: float = 1.0Constant:
OVERLAP_EPSILON_RATIO: float = 0.05Constant:
PERFORMANCE_TIMEOUT_MS: int = 100
Public Methods
assert_bounds_equal
| |
Helper functions for test maintainability Asserts that two Rect2 bounds are approximately equal within tolerance
calculate_tile_coverage
| |
Calculates tile coverage for given bounds
assert_tile_coverage
| |
Asserts tile coverage matches expected values
generate_test_positions
| |
Generates a grid of test positions for performance testing
before_test
| |
test_collision_detection_performance
| |
Test performance of collision detection methods
Grid Building v5.0.8 | Generated 24/05/2026