benilla-re systems structs docs

UpdateOrientation

function · minimap · primitive

Address
0x6da180 · 430 bytes, up to 0x6da32d
Signature
void __thiscall (void *this)
Meaning
Refreshes the orientation matrices, renormalizes the first and turns it by 90 degrees about Z
Confidence
verified, proof one
Finding
minimap/coordinates#orientation-basis
Test
minimap::orientation_renormalize_difftest

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.

Callers 1

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.