Flocking
boids
0
click: drop an obstacle · drag: steer the predator · right-click: clear obstacles
Pause
Reset
Boids
1200
Separation
1.4
Alignment
1.0
Cohesion
0.9
Vision
48
Speed
2.4
predator
trails
wrap edges
Reynolds' three rules: steer away from neighbours that are too close, match their average heading, move toward their centre.
Space
pause ·
R
reset