benilla-re systems structs docs

s_clientRandom

global · client

Address
0x882664 · 8 bytes, up to 0x88266b
Type
uint32_t[2]
Meaning
Holds a random state many systems advance, the shard placement among them
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.