CMovement::IsPositionValid
function · collision · primitive
- Address
0x616bf0· 191 bytes, up to0x616cae- Signature
uint32_t __thiscall (CMovement *this)- Meaning
- Returns 1 when the position is finite and x and y lie in (-17064.666, 17064.666], else 0
- Confidence
- verified, proof one
- Finding
- collision/mover#position-validity
- Test
collision::pos_valid_difftest
Finding: Position validity in collision: mover
0x616bf0 returns 1 when x, y and z at +0x10 are finite, 17066.666 − y (53-bit) lies in
[2.0, 34131.332) and fl(17066.666 − x) lies in the same range; else 0. For float coordinates
this is −17064.666 < x, y ≤ 17064.666; z is tested only for finiteness. The constants are
17066.666015625 (0x46855555, 32 × 533.33333), 2.0 and 34131.33203125 (0x47055355, 0x80c738).
No NaN reaches the compares.
The derivation is in the doc.
Callers 1
- CMovement::IntegrateStep collision
Callees 1
- _finite crt
Calls and jumps by a bare address, from tables/calls.tsv.