NormalLive
Obstacles
Drag a shape onto the field.How it works
Boids logic
Each boid reads nearby neighbors, then blends three simple choices into motion: pull closer, match direction, and keep enough distance.
Local rulesNo single leader controls the flock. Group movement emerges from small decisions made every frame.Cursor influenceMove the pointer to pull or repel the group, then scroll over the field to adjust the influence range.Fast canvas loopPositions stay inside the simulation engine while Canvas draws the scene with requestAnimationFrame.