boids

source code

left and right click to move the boids, or just watch their flocking patterns!
double click to make an explosion
middle click or click in the top right to toggle this menu
press space to pause, and use . to advance one frame

number of boids:

visual settings

boid movement

movement accuracy: ? the maximum number of boids in vision that each boid checks - higher values can cause lag with more boids

boid vision:

alignment force:

alignment bias: ? how much a boid will align towards other boids. values greater than 1 mean that it will be biased towards other boids facing the same direction, while values lower than 1 mean the opposite.

cohesion force:

separation force:

steering force:

min speed:

max speed:

drag:

movement randomness:

debug info

fps:

arrow