s_bevelCountCases
global · collision
- Address
0x63679c· 16 bytes, up to0x6367ab- Type
void *[4]- Meaning
- Holds the case addresses of 0x636610 for one to four planes
- Confidence
- verified, proof one
- Finding
- collision/walking#bevel-contact-direction
Finding: Bevel contact direction in collision: walking
0x636610(planes, count, out) (ecx, edx, one stack argument) returns 0 unless
1 ≤ count ≤ 4 and every plane's z lies strictly within 2^-20 of −0.4756366, the mover's bevel
planes. Then it returns 1 with out:
| count | out |
|---|---|
| 1 | plane 0's normal |
| 2 | (float((p1 + p0).x·K), float((p1 + p0).y·K), float(float(p1.z + p0.z)·K)), K = 0.6385560 |
| 3 | the normal of the one plane with ` |
| 4 | (0, 0, 0) |
The derivation is in the doc.