benilla-re systems structs docs

CMovement::SweepAirborneStep

function · collision · primitive

Address
0x6351a0 · 557 bytes, up to 0x6353cc
Signature
int __thiscall (CMovement *this, float time, float *move, float *length, float *push, uint64_t *guid, int *landed, int *headHit)
Meaning
Sweeps one airborne step; returns 0 clear, 1 hit (landing, head strike or push), 2 failed
Confidence
verified, proof one
Finding
collision/airborne#airborne-step-sweep
Test
collision::walk_slide_difftest, collision::walk_slide_sweep_miss_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 7

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