Lab / Boids Flocking
🐦

Boids Flocking

Craig Reynolds' flocking algorithm: separation, alignment, and cohesion. Click to add predators, right-click for obstacles, drag to create wind.

Boids: 200
Separation1.5
Alignment1.0
Cohesion1.0
Perception Radius50
Max Speed4.0
Max Steer Force0.20
Boid Count200

Click to add a predator (red triangle). Right-click to place obstacles. Drag to create wind force. All simulation runs entirely in your browser.