← Labs

Boids Swarm Simulation

Craig Reynolds (1987) — click to add a predator

Boids: 120




Three simple rules — separation (avoid crowding), alignment (steer like neighbors), cohesion (stay together) — produce complex flocking behavior. Click canvas to place a predator that boids flee.