benilla-re systems structs docs

s_orientation

global · minimap

Address
0xceaa20 · 64 bytes, up to 0xceaa5f
Type
float[16]
Meaning
Holds the orientation matrix of the node, turned by 90 degrees; identity at first
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.