A CodePen by Tyler Benziger. Boids - Simple flocking boids algorithm ~ from when I was first experimenting with AI... plenty of improvements to be made now that I look back at it :)