Skip to content
CppCooperProgramming Portfolio
Selected projectProject year 2018

Boids Algorithm

A JavaScript flocking simulation using alignment, cohesion and separation.

The case study

Project overview

This JavaScript simulation models a flock of boids. Each boid steers using its nearby neighbors, balancing alignment, cohesion and separation.

Open the original standalone simulation (runs a larger flock and may use more CPU, but will offer more variety).

Source: flocking simulation and canvas and vector helpers.

By Joshua Cooper Published Updated

Keep exploring

More projects

View the portfolio