benilla-re systems structs docs

CMovement::SetCollisionSize

function · collision · primitive

Address
0x6174b0 · 110 bytes, up to 0x61751d
Signature
void __thiscall (CMovement *this, float width, float height, float scale, float modelScale)
Meaning
Sets the radius w·s/2, the height h·s and the ratio s/d, 1.0 when |d| is below 2^-22
Confidence
verified, proof one
Finding
collision/mover#collision-size
Test
collision::param_set_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 2

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