benilla-re systems structs docs

CGUnit_C::UpdateCollisionSize

function · objectlayer · primitive

Address
0x60b270 · 426 bytes, up to 0x60b419
Signature
uint32_t __thiscall (CGUnit_C *this, uint32_t flag)
Meaning
Sizes a unit's mover from its model record and scale through 0x617460 and 0x6174b0
Confidence
inferred
Finding
collision/mover#collision-size
Test
objectlayer::box_dim_pf_even_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 2

Callees 5

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