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: {{ boids }}

visual settings

boid movement

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

boid vision: {{ vision }}

alignment force: {{ alignment }}

alignment bias: {{ rbias }} ? 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: {{ cohesion }}

separation force: {{ separation }}

steering force: {{ maxForce }}

min speed: {{ minSpeed }}

max speed: {{ maxSpeed }}

drag: {{ drag }}

movement randomness: {{ noise }}

debug info

fps: {{ special.fps.toFixed(1) }}

arrow