SelectBevelContactNormal
function · collision · primitive
- Address
0x636610· 393 bytes, up to0x636798- Signature
uint32_t __fastcall (const float *planes, uint32_t count, float *out)- Meaning
- Writes a contact direction from one to four bevel planes; returns 0 when a plane is not a bevel
- Confidence
- verified, proof one
- Finding
- collision/walking#bevel-contact-direction
- Test
collision::walk_helpers_difftest
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.
Callers 2
- CMovement::ProbeStepUp collision
- CMovement::ResolveWalk collision
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.