benilla-re systems structs docs

CMovement::TransformFrame

function · collision · primitive

Address
0x7c6620 · 368 bytes, up to 0x7c678f
Signature
void __thiscall (CMovement *this, const NTempest::C44Matrix *matrix, float angle)
Meaning
Expresses position, anchor, facings, heights and direction in another frame, then the live spline
Confidence
verified, proof one
Finding
collision/falling#frame-transform
Test
collision::frame_transform_facing_advance_a_difftest, collision::frame_transform_facing_advance_b_difftest, collision::frame_transform_transport_delta_affine_difftest, collision::frame_transform_matvec3_difftest, collision::frame_transform_normalize2_difftest

Finding: Frame transform in collision: falling

0x7c6620(m, a) re-expresses the mover in another frame, given a 4×4 matrix m and an angle a. It transforms the position +0x10 and the anchor +0x44 in place with 0x7bcc60; adds a to the facing +0x1c and the anchor facing +0x50, each wrapped once; maps the heights +0x7c and +0x80 to z·m[10] + m[14]; turns the direction +0x5c by m's upper 3×3; and sets +0x68, +0x6c to its x and y, each times 1/len when the length is 2⁻²² or more, or NaN. With a live spline, flag 0x4 clear, it ends with 0x7c6520(m, a), which moves the spline's point at +0x08, its path (through 0x7bca80) and its facing at +0x14 the same way.

The derivation is in the doc.

Callers 2

Callees 2

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