1. Terrain gradeS = √[(∂h/∂x)² + (∂h/∂z)²]
Angle = atan(S). The heightfield gradient is estimated by centred finite differences (1.5 m step).
2. Shallow-flow estimate (Manning)v = (1/n) R2/3 S1/2
Here n = 0.04 (illustrative vegetated roughness) and R = 0.01 m (assumed hydraulic radius). A rainfall excess proxy is max(0, I − 8 mm/h).
Assumptions and limits: this is a steady, uniform-flow estimate, not a hydrology solver. The rainfall threshold is a simple infiltration placeholder; soil texture, changing water depth, rills, evaporation, and downstream routing are not simulated. The terrain and roads are procedural, not surveyed data. The displayed speed is theoretical when excess runoff is zero.