benilla-re systems structs docs

CMovement::TestCollisionSize

function · collision · primitive

Address
0x617460 · 75 bytes, up to 0x6174aa
Signature
uint32_t __thiscall (CMovement *this, float width, float height, float scale)
Meaning
Tests a half width w·s/2, capped at 0.5407162·s, and height h·s through 0x631670
Confidence
verified, proof one
Finding
collision/mover#collision-size
Test
collision::turn_clamp_difftest

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.

Callers 1

Callees 1

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