BuildYawMatrix
function · objectlayer · primitive
- Address
0x615070· 139 bytes, up to0x6150fa- 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
- CGCorpse_C::DrawDecal objectlayer
- CGUnit_C::DrawSelectionCircle objectlayer
- CGUnit_C::DrawAutoMoveTarget objectlayer
Callees 3
- HeadingBetweenPoints objectlayer
- 0x481900 ui
- RotateMatrix cmath
Calls and jumps by a bare address, from tables/calls.tsv.