benilla-re systems structs docs

HasBevelPlane

function · collision · primitive

Address
0x635410 · 58 bytes, up to 0x635449
Signature
int __fastcall (const float *planes, uint32_t count)
Meaning
Returns 1 when a plane's normal z lies within 2^-20 of -0.4756366, the volume bevels' z
Confidence
verified, proof one
Finding
collision/airborne#airborne-step-sweep
Test
collision::leaf_predicates_difftest

Finding: Airborne step sweep in collision: airborne

0x6351a0 clears land and head. For a < 2^-22 it returns 0 with guid 0. Else u = float(D_i·(1/a)) and 0x632ba0 (contact) sweeps 0xc4e52c along u for a, writing the allowed distance into a. Then:

outcomeresult
sweep failedD = 0; return 2
no hitguid = 0; return 0
hit, 0x633720 finds triangle i floor under +0x10 + DD = float(u_i·a); land = 1; guid = i's GUID if a contact plane has z = −0.4756366 (0x635410), else 0; return 1
hit, rising: u.z > 0, Ta − t ≥ 0 and (Ta − t)·+0x84 ≥ a, Ta = 0x7c5da0(), and a contact plane of z = 1 (0x6353d0)D = float(u_i·a); guid = 0; head = 1; return 1
any other hitD = float(u_i·a); guid = 0; push = 0x635090(…); return 1

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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