HasUpwardPlane
function · collision · primitive
- Address
0x6353d0· 58 bytes, up to0x635409- Signature
int __fastcall (const float *planes, uint32_t count)- Meaning
- Returns 1 when a plane's normal z lies within 2^-20 of 1
- 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:
| outcome | result |
|---|---|
| sweep failed | D = 0; return 2 |
| no hit | guid = 0; return 0 |
hit, 0x633720 finds triangle i floor under +0x10 + D | D = 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 hit | D = float(u_i·a); guid = 0; push = 0x635090(…); return 1 |
The derivation is in the doc.
Callers 1
- CMovement::SweepAirborneStep collision
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.