benilla-re systems structs docs

s_rainBaseFall

global · lighting

Address
0x80ffb4 · 4 bytes, up to 0x80ffb7
Type
const float
Meaning
Holds 28.0, the rain's base fall speed
Confidence
verified, proof one
Finding
lighting/precipitation#rain-drops

Finding: Rain drops in lighting: precipitation

A drop is seeded at a random point of the box's horizontal centre plane. Its velocity is s·(sin a, cos a) across and vz down, with a = (0.2094395·x + 0.0523599)·(u − 0.5) − 1.57, s = (2(u − 0.5) + 9.49)·x + 0.01 and vz = −2x·r − 4x − 28, u and r uniform in [0, 1). Its position moves back by T = 37.5/|vz|, the time to fall half the box, onto the box's top. The position, not the velocity, is turned about the horizontal axis at heading −90° by up to 65° as the speed reaches 18, then moved by 1.75 times the player's velocity and by the camera.

The derivation is in the doc.