Grid Placement

GBGridRotationUtils

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: core/math/gb_grid_rotation_utils.gd

Version: 5.1

class_name: GBGridRotationUtils extends: RefCounted

Summary

Utility class for grid rotation operations. Backported from C# Core/Math/GridRotationUtils.cs

Behavior:

  • Converts degrees to one of 8 discrete cardinal directions.
  • Provides per-direction tile deltas for 8-way grid movement.

Notes:

  • Direction mapping assumes a screen/grid coordinate system where +Y is down.

Signals

(none)

Exports

(none)

Methods

(none)