Three rules — separation, alignment, cohesion — applied independently to each boid. No leader, no plan, no global knowledge. Collective behavior emerges from local interaction alone.
1.5
1.0
1.0
80
4
200
click to attract · right-click to repel · P = predator · O = obstacle
What to try
Set cohesion high, separation low — tight swarms that move as one
Set separation high, cohesion low — dispersed, gas-like behavior
Add a predator and watch the flock split and reform around it
Turn on trails to see emergent movement patterns
Watch how small parameter changes create phase transitions in group behavior
P add predator (max 3)
O place obstacle at cursor
R reset