Classic 2D Boids Flocking

Experience Craig Reynolds' pioneering 1987 Boids algorithm in action. Watch as simple rules create complex, lifelike flocking behavior. Three fundamental forces—separation, alignment, and cohesion— combine to produce emergent swarm intelligence. Click on any boid to visualize its perception radius and neighbor connections.

FPS: 60
Active Boids: 200
Selected Boid: None
Neighbors: -

Reynolds' Three Rules

Separation: Avoid crowding nearby boids

Alignment: Match velocity with neighbors

Cohesion: Move toward group center

Click any boid to see its perception radius and connections!