From 6f6dfabbe8beca06a6f93c5dfc860dbad40a18d4 Mon Sep 17 00:00:00 2001 From: SG101 Date: Sun, 9 Oct 2022 22:45:49 +0200 Subject: [PATCH] fixed header numbers --- projects/boids.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.