CMovement::QuerySweptBox
function · collision · primitive
- Address
0x633840· 2017 bytes, up to0x634020- Signature
int __thiscall (CMovement *this, float dist, uint32_t ms, float dirX, float dirY, float dirZ)- Meaning
- Gathers the world triangles inside the unit's box grown along a move into 0xc4e52c; returns 0 on failure
- Confidence
- verified, proof one
- Finding
- collision/resolve#swept-query-frame
- Test
collision::query_difftest,collision::query_clear_difftest
Finding: Swept query frame in collision: resolve
0x633840(dist, ms, u) starts from p = +0x10. On a transport (GUID +0x38 nonzero) it maps p
to world space through the transport's matrix from 0x630ac0 with 0x7bcc60, and u through
the matrix's rotation rows, each component rounded. 0x6337d0 then tests p's components with
__finite, and the result is discarded. The base box, kept in 0xc4e5a0 as min then max, is
[p.x − r, p.y − r, p.z] to [p.x + r, p.y + r, p.z + h], r = +0xb0, h = +0xb4. The move is
m = float(u_i·dist) per component.
The derivation is in the doc.
Callers 1
- CMovement::ResolveDisplacement collision
Callees 15
- SetVector3 spline
- AddVector3InPlace ui
- CMovement::GetScaleRatio collision
- DestroyAaBox objectlayer
- BuildTransportMatrix collision
- CMovement::GetCollisionMask collision
- IsVector3Finite collision
- AddScalarToVector3 collision
- SubtractScalarFromVector3 collision
- NegateVector3 collision
- UnionBoxes collision
- QueryWorldTriangles terrain
- TransformPointInPlace cmath
- InvertAffineMatrix cmath
- CMovement::GetFallDrop collision
Calls and jumps by a bare address, from tables/calls.tsv.