s_weatherTwoPi
global · lighting
- Address
0xc7b554· 4 bytes, up to0xc7b557- Type
float- Meaning
- Holds 2π; written at start-up
- Confidence
- verified, proof one
- Finding
- lighting/weather#weather-driver
Finding: Weather driver in lighting: weather
Each frame the driver samples the player's motion, then takes the heading from the player's velocity when its horizontal speed is at least 1 and the unit flag is clear, else from the player's facing; the speed is the player's movement speed while the transport is at most √2 (v² ≤ 2, NaN included), else the transport's horizontal speed. A pending type with live particles and smooth on fades the old effect: the grade ramps toward min(target, 0.25) and each effect is told to stop. Otherwise the effects are torn down and the pending type is built. A grade or density still off its target ramps toward the full target.
The derivation is in the doc.