Flocking

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

P add predator (max 3)    O place obstacle at cursor    R reset