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

1
before_test() -> void

after_test

1
after_test() -> void

Private Methods

_transforms_equal

1
2
3
4
5
_transforms_equal(
    t1: Transform2D,
    t2: Transform2D,
    tolerance: float = ROTATION_TOLERANCE
) -> bool

Flags: private


_setup_isometric_base_transform

1
_setup_isometric_base_transform(scenario: Dictionary) -> void

Flags: private


_create_test_indicators

1
_create_test_indicators(count: int = 3) -> Array[Node2D]

Flags: private


_normalize_angle

1
_normalize_angle(angle: float) -> float

Flags: private

Normalize angle to Godot’s standard -180 to 180 range


_angles_equivalent

1
2
3
4
5
_angles_equivalent(
    angle1: float,
    angle2: float,
    tolerance: float = ROTATION_TOLERANCE
) -> bool

Flags: private

Check if two angles are equivalent (handles -180/+180 edge case)


_capture_global_rotations

1
_capture_global_rotations() -> Dictionary

Flags: private


_calculate_expected_rotation_delta

1
2
3
4
_calculate_expected_rotation_delta(
    initial_rotations: Dictionary,
    applied_degrees: float
) -> Dictionary

Flags: private


_generate_test_parameters

1
_generate_test_parameters() -> Array

Flags: static, private


_generate_cumulative_test_parameters

1
_generate_cumulative_test_parameters() -> Array

Flags: static, private


_generate_isolation_test_parameters

1
_generate_isolation_test_parameters() -> Array

Flags: static, private



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