benilla-re systems structs docs

s_secondMatrix

global · minimap

Address
0xcea9e0 · 64 bytes, up to 0xceaa1f
Type
float[16]
Meaning
Holds the second matrix the node returns, identity at first
Confidence
verified, proof one
Finding
minimap/update#interior-window

Finding: Interior window in minimap: update

Indoors, the window is a square of the width c of the indoor zoom table {150, 120, 90, 60, 40, 25} at the index 0x86f69c, snapped to the player: min.x = round(px · r − 0.5) · c, min.y = round(py · r − 0.5) · c with r = 1/c, min.z = pz − c/2, max.x = min.x + c, max.y = min.y + c, max.z = c/2 + min.z, rounded half to even. The node (0x670520) then gives the descriptors of the groups touching the window grown by c all round, at most 0x200. Held tiles are refreshed, the others loaded (tiles#interior-tiles), and the state record gets the window's centre, the position, the radius and the matrices.

The derivation is in the doc.