benilla-re systems structs docs

SyncLightNode

function · terrain · primitive

Address
0x6717d0 · 689 bytes, up to 0x671a80
Meaning
Stores a light node's position, scale, world box, centre, radius and probe point from a matrix
Confidence
verified, proof one
Finding
terrain/lightattach#node-sync
Test
terrain::camera_set_difftest

Finding: Node sync in terrain: light node attach

0x6717d0(matrix, local box, point, force) stores the node's state from the object's world matrix. The position +0x24 is the matrix translation; the scale +0x30 is the length of its first row. The world box +0x44/+0x50 is the local box under the matrix, with centre +0x5c and radius +0x68 to the maximum corner. A local box with any minimum above its maximum, or a NaN, collapses box and centre onto the position and the radius to 0. +0xa8 is the matrix applied to the point argument. The node is relit (0x69e280) when the position moved by a squared step of 0.001 or more, or the force argument is set; a NaN step relights too (0x67182d).

The derivation is in the doc.

Callers 6

Callees 8

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