benilla-re systems structs docs

ProbeGroundBelow

function · terrain · primitive

Address
0x672b60 · 215 bytes, up to 0x672c36
Signature
uint32_t __fastcall (const float *point, float *out, uint32_t arg3)
Meaning
Writes the ground height up to 20 below a point from a downward plane trace
Confidence
verified, proof one
Finding
terrain/world#scene-callbacks
Test
terrain::ground_z_probe_difftest

Finding: Scene callbacks in terrain: world

The model scene calls two world callbacks. 0x672b30 is the special-batch callback: it runs the decal batch pass 0x6d7480 with flags 0x200122 when its second argument is nonzero or the world mode 0xc5a470 is 2 or more. 0x672b60 is the ground callback: it traces the segment from the position down 20 yards against the planes (mask 0x100111) and, on a hit at fraction t, writes z − 20t to the second argument and returns 1; it returns 0 on a miss.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.