TraceTerrainFirstHit
function · terrain · orchestration
- Address
0x6aa3e0· 533 bytes, up to0x6aa5f4- Signature
uint8_t __fastcall (const float *start, const float *end, float *t, void *plane)- Meaning
- Walks a segment's cells for the terrain's first hit and rescales its fraction
- Confidence
- inferred
- Finding
- terrain/trace#terrain-first-hit
- Test
terrain::ray_dda_chunk_driver,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
- TraceWorldPlanes terrain
Callees 8
- SubtractVector3 ui
- ScaleVector3 objectlayer
- AddVector3 objectlayer
- ListCellRowRun terrain
- ListCellColumnRun terrain
- ListCellsAlongRows terrain
- ListCellsAlongColumns terrain
- TraceListedCellsFirstHit terrain
Calls and jumps by a bare address, from tables/calls.tsv.