CMovement::GatherSweepFacets
function · collision · primitive
- Address
0x631e70· 1038 bytes, up to0x63227d- Signature
uint32_t __thiscall (CMovement *this, float dx, float dy, float dz)- Meaning
- Fills the facet lists around a move unless the cached box holds it; returns 0 when the query fails
- Confidence
- verified, proof one
- Finding
- collision/contact#facet-gather
- Test
collision::static_overlap_difftest,collision::static_overlap_transport_difftest
Finding: Facet gather in collision: contact
0x631e70(m), m a move by value, fills the facet lists for a sweep of a CMovement by m, with
r = +0xb0 and H = +0xb4, in these steps. It returns 1 unless the solid query fails.
| step | effect |
|---|---|
| 1 | on a transport (+0x38 nonzero): p (+0x10) and m to world by 0x630ac0's matrix M |
| 2 | e = p + m; when the cached box 0xc4e5a0 holds (e.x − r, e.y − r, e.z) and (e.x + r, e.y + r, e.z + H): return 1 |
| 3 | query box: that box grown by 1/6 on every side, joined with the cached box |
| 4 | solid query into 0xc4e52c, which empties the list first; failure returns 0 with the cache unchanged, so a later box inside it returns 1 over the emptied list |
| 5 | a swimmer (0x200000): liquid query into 0xc4e564, its return ignored, every liquid plane reversed |
| 6 | the cache becomes the query box |
| 7 | on a transport: each solid facet into transport space by M⁻¹ |
The derivation is in the doc.
Callers 2
- CMovement::MeasureHoverDrop collision
- CMovement::SweepVolume collision
Callees 13
- SetVector3 spline
- SetPlane gx
- DestroyAaBox objectlayer
- BuildTransportMatrix collision
- CMovement::GetCollisionMask collision
- AddScalarToVector3 collision
- SubtractScalarFromVector3 collision
- NegateVector3 collision
- IsPointInBox collision
- UnionBoxes collision
- QueryWorldTriangles terrain
- TransformPointInPlace cmath
- InvertAffineMatrix cmath
Calls and jumps by a bare address, from tables/calls.tsv.