benilla-re systems structs docs

TraceWorldSegment

function · terrain · orchestration

Address
0x672170 · 24 bytes, up to 0x672187
Meaning
Passes a segment, a point output, a fraction and flags to 0x69bff0, dropping its first stack argument
Confidence
inferred
Finding
spell/visuals#shard-placement

Finding: Shard placement in spell: visuals

Each shard draws u and then a unit vector (c, s) from the client random state 0x882664; p = (x + u·c·r, y + u·s·r, z + 16.666666) and q = (x, y, z + 0.16666667) from the emitter's position and radius. A trace from q to p that hits gives a = q + (p − q)·(0.95·f), f its fraction, else a = p. A second trace from a to (a.x, a.y, a.z − 33.333332) that hits writes the shard's position; a miss puts the shard at the emitter's position. The radial draw is u, not √u, so shards gather toward the centre.

The derivation is in the doc.

Callers 7

Callees 1

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