When a crowd finds its direction.
A scattered group can become a moving front. Change the local crowding and watch individual rules produce a collective shift.
Collective order over time
THE SCIENCEMODEL RULES, EQUATIONS & LIMITS+
From neighbours to a marching front
Each agent moves at a fixed cruising speed. Its turning direction blends local heading alignment with a density-gated social response. At low local density, neighbours are avoided. Above the crowding threshold, the response shifts toward escape–pursuit: steer away from neighbours whose distance is closing, and toward neighbours moving away.
k = local neighbour count; kc = crowding threshold; g = density gate; Ω = maximum turn rate; σ = angular-noise scale; ξ = unit Gaussian noise; P = global polarisation. Illustrative gate width: 1.05 neighbours. Scaled update constants: Δt = 1/60 s, v₀ = 28 field units/s, body length = 10 field units, Ω = 2.65 rad/s. Each fixed step chooses a bounded turn, then advances position by v₀Δt; this is a discrete stochastic agent model, not a continuous-force mechanics model.
What is simplified
- Agents are identical points with a schematic body; no growth, feeding, terrain or weather.
- The arena wraps at its edges to remove wall effects.
- Density gating and interaction weights are illustrative, not fitted to a particular experiment.
- The model shows a plausible route to collective order, not a forecast of a real swarm.
For N independent random headings, the large-N reference is E[P] ≈ √π / (2√N). The benchmark uses a separate ensemble, not the live agents.
Illustrative educational model, not affiliated with any real institution or manufacturer.