benilla-re systems structs docs

CMovement::ComputeFacingRate

function · collision · primitive

Address
0x618f80 · 170 bytes, up to 0x619029
Signature
void __thiscall (CMovement *this, uint32_t fromTime, float fromFacing, uint32_t toTime, float toFacing)
Meaning
Stores the seconds to the target in +0x148 and the shortest-way facing rate in +0x144
Confidence
verified, proof one
Finding
collision/status#facing-rate-toward-the-head
Test
collision::facing_interp_difftest

Finding: Facing rate toward the head in collision: status

0x619030(t) arms the facing blend toward a queue head that carries a status, has a tag other than 0x26 and the mover's transport GUID; otherwise it zeroes +0x148. 0x618f80(t0, f0, t1, f1) stores s = (t1 − t0, unsigned, as a 64-bit integer) × 0.001 (0x3a83126f), at 53 bits, to +0x148; |s| < 2⁻²² (0x34800000) becomes 0. A nonzero s gives Δ = f1 − f0, minus 2π (6.2831855, 0x40c90fdb) when Δ > π (0x40490fdb), plus 2π when Δ < −π, NaN unchanged, and stores Δ / s to +0x144. Then |+0x144| < 2⁻²⁰ (0x35800000) zeroes +0x148; NaN keeps it. A head due up to about 10⁹ ms ago wraps s above 3.29·10⁶, so the blend is off.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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