benilla-re systems structs docs

s_collisionRadiusCap

global · collision

Address
0x80c73c · 4 bytes, up to 0x80c73f
Type
float
Meaning
Holds 0.54071623 (0x3f0a6c61), the cap on half width over scale in 0x617460
Confidence
verified, proof one
Finding
collision/mover#collision-size

Finding: Collision size in collision: mover

0x6174b0(w, h, s, d) sets +0xb8 to 1.0 when |d| < 2⁻²² (0x34800000), else fl(s / d), NaN for a NaN d; +0xb0 to fl(w · s · 0.5); +0xb4 to fl(h · s); then calls 0x7c4930 and 0x634030. 0x617460(w, h, s) takes a = fl(w · s · 0.5) and b = fl(h · s); when a · 1.8493990 (0x3fecb91b, 0x80c740) exceeds s it uses a = fl(s · 0.54071623) (0x3f0a6c61, 0x80c73c); equality or NaN keeps a. It returns 0x631670(b, a) on this mover. 0x60b270 sizes a unit's mover with them. 0x617430 returns +0xb8 when 0x5fa550(unit) is nonzero, else 2.0.

The derivation is in the doc.