diff --git a/projects/boids.html b/projects/boids.html index 2a38b1b..f9aa69b 100644 --- a/projects/boids.html +++ b/projects/boids.html @@ -45,7 +45,7 @@

Code

-

Boid

+

Boid

The boids themselves are primarily a position, a velocity, a mass, and a collection of behaviour function pointers. These boids are then stored in a vector and each of the behaviours is run for each of the boids, resulting in the demonstrated movements. @@ -57,7 +57,7 @@

-

Behaviours

+

Behaviours

As previously mentioned, the boids all store a collection of behaviours, represented by function pointers. These function pointers take as input a context object representing the program state at the start of the frame, and output a desired change in velocity. The original boids paper describes cohesion, separation, and alignment, so these are the main behaviours implemented.