benilla-re systems structs docs

s_quarterTurn

global · minimap

Address
0x86f6b4 · 4 bytes, up to 0x86f6b7
Type
float
Meaning
Holds 90.0, the angle the orientation is turned about Z
Confidence
verified, proof one
Finding
minimap/coordinates#orientation-basis

Finding: Orientation basis in minimap: coordinates

UpdateOrientation(node) refreshes the matrix 0xceaa20: it asks the node for its orientation and a second matrix (0xcea9e0), renormalizes the first, and turns it by 90 degrees about the Z axis. Only the first three rows are used. When the squared length of row 0, s, differs from 1.0 by 2.38e-7 or more, every row is scaled so its length becomes 1/√s: row k is multiplied by (1/√s) / √(s_k). The turn is the constant 90.0 times π/180 about the axis (0, 0, 1), with the translation row zeroed first.

The derivation is in the doc.