TraceListedCellsFirstHit
function · terrain · primitive
- Address
0x6aa600· 679 bytes, up to0x6aa8a6- Signature
uint8_t __fastcall (const float *start, const float *end, float *t, void *plane)- Meaning
- Intersects the listed cells with a segment, recording the hit triangle's plane
- Confidence
- inferred
- Finding
- terrain/trace#terrain-first-hit
- Test
terrain::dda_cell_intersect_first_difftest,terrain::raycast_e2e_chunk_driver
Finding: Terrain first hit in terrain: trace
0x6aa3e0 is the same walk for the terrain alone, used by queries that want the first hit: it
rebuilds the ray from the start and t, walks the cells and tests them with 0x6aa600, which
records the hit triangle's plane through the collision code's 0x637480, and rescales the raw
fraction by t.
The derivation is in the doc.
Callers 1
- TraceTerrainFirstHit terrain
Callees 3
- SplatVector3 loadingscreen
- PlaneFromTriangle collision
- IntersectRayTriangle cmath
Calls and jumps by a bare address, from tables/calls.tsv.