benilla-re systems structs docs

BuildYawMatrix

function · objectlayer · primitive

Address
0x615070 · 139 bytes, up to 0x6150fa
Signature
void __thiscall (void *this, NTempest::C44Matrix *matrix, float *point)
Meaning
Fills an identity matrix rotated about Z by the camera's heading to a point
Confidence
verified, proof one
Finding
objectlayer/objectbase#ground-conform
Test
objectlayer::negate_facing_615070_difftest

Finding: Ground conform in objectlayer: the base object

Slot 15, 0x614cd0(dt), tilts the model to the ground. When slot 8's normal has z ≥ 0.3572124, the smoothed vector +0x104 becomes normal + (+0x104 − normal)·0.0018^dt; a steeper normal leaves it as it was. The model's base transform is then set through SetBaseTransformConformed with the position (slot 5), the facing (slot 17), the model scale and +0x104.

The derivation is in the doc.

Callers 3

Callees 3

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