benilla-re systems structs docs

s_splineWarpSpeedSquared

global · collision

Address
0x80c734 · 4 bytes, up to 0x80c737
Type
float
Meaning
Holds 3600.0 (0x45610000), the squared horizontal speed in yd/s above which a spline step skips collision
Confidence
verified, proof one
Finding
collision/mover#spline-warp-gate

Finding: Spline warp gate in collision: mover

0x616af0(end, r, &delta) gets the spline displacement from 0x7c5490(end, &delta) and returns 0 when that does. Unless flags & 0x200f and the spline's +0x18 lacks 0x200, it returns 1. Else target = fl(anchor + delta) per axis, D = dy² + dx² from the position (53-bit) and T = r · 0.001 (0x3a83126f). If D / T² > 3600 (0x45610000, 0x80c734) or D > 9.0, each test also passing when unordered, it stores target as the position, sets +0x7c to 0x7c5f30(+0x78) when flags & 0x2000, calls 0x7c4930 and 0x634030, and returns 0, which ends 0x616de0 without a commit. Otherwise it returns 1. A step over 3 yards or 60 yards per second in x and y is taken without collision.

The derivation is in the doc.