CMovement::TransformSpline
function · collision · primitive
- Address
0x7c6520· 248 bytes, up to0x7c6617- Signature
void __thiscall (CMovement *this, const NTempest::C44Matrix *matrix, float angle)- Meaning
- Transforms the spline's point and path by a matrix and adds an angle to its facing, wrapped once by 2π
- Confidence
- verified, proof one
- Finding
- collision/falling#frame-transform
- Test
collision::tf_spline_facing_accumulate_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 1
- CMovement::TransformFrame collision
Callees 4
- __alloca_probe crt
- SetSplinePath spline
- TransformPoint cmath
- TransformPointInPlace cmath
Calls and jumps by a bare address, from tables/calls.tsv.