isometric_rotation_tests
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
Unit tests for isometric rotation handling where nodes may be skewed and rotated
Source File: /addons/grid_building/test/manipulation/isometric_rotation_tests.gd
Extends: GdUnitTestSuite
Private Properties
- Property:
_manipulation_parent: [ManipulationParent](./manipulation-parent/)(private) - Property:
_indicator_manager: Node2D(private) - Property:
_test_object: Node2D(private) - Property:
_base_transform_node: Node2D(private) - Property:
_test_indicators: Array[Node2D](private)
Constants
- Constant:
TEST_SCENARIOS: Array[Dictionary] = [- Test transformation scenarios - covers various isometric setups - Constant:
ROTATION_INCREMENTS: Array[float] = [0.0, 45.0, 90.0, 180.0, -45.0, -90.0]- Rotation test increments to apply during manipulation - Constant:
ROTATION_TOLERANCE: float = 0.01- Tolerance for floating point comparison
Public Methods
before_test
| |
after_test
| |
Private Methods
_transforms_equal
| |
Flags: private
_setup_isometric_base_transform
| |
Flags: private
_create_test_indicators
| |
Flags: private
_normalize_angle
| |
Flags: private
Normalize angle to Godot’s standard -180 to 180 range
_angles_equivalent
| |
Flags: private
Check if two angles are equivalent (handles -180/+180 edge case)
_capture_global_rotations
| |
Flags: private
_calculate_expected_rotation_delta
| |
Flags: private
_generate_test_parameters
| |
Flags: static, private
_generate_cumulative_test_parameters
| |
Flags: static, private
_generate_isolation_test_parameters
| |
Flags: static, private
Grid Building v5.0.8 | Generated 24/05/2026