benilla-re systems structs docs

CGObject_C::UpdateNode

function · objectlayer · primitive

Address
0x613ef0 · 430 bytes, up to 0x61409d
Signature
void __thiscall (CGObject_C *this, int flag)
Meaning
Rebuilds the node's matrix from position, facing and scale and sets its bounds
Confidence
verified, proof one
Finding
objectlayer/objectbase#the-node-transform
Test
objectlayer::world_model_scale_difftest, objectlayer::world_bounds_sum_difftest

Finding: The node transform in objectlayer: the base object

0x613ef0(flag) rebuilds the node's matrix: a translation to slot 5's position, a rotation about Z by slot 6's facing, and a uniform scale of +0x90 · +0x94 · (+0x9c with a second model, else +0x98). With a loaded body it takes the collision box's centre as the node's pivot. It passes the matrix, the pivot, the bounds +0xc0 and the flag to SetWorldObjectBounds. 0x615030 calls it with 1 for one object, and 0x615020 enumerates every object into it.

The derivation is in the doc.

Callers 6

Callees 8

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