Emergent behavior - flocking
This simulation was heavily based on Craig Reynolds paper "Steering Behaviors For Autonomous Characters" published in June 2002.
Some additional resource: a very accessible and comprehensive reminder on how to apply rotation matrices, or in other words, how to rotate a group of points around an arbitrary point.
Bugs to fix
- Some deployed agents are initialized with NaN values which may result in less boids visualised than saved in the array.
- Additionally, this may cause some of the radii to not be visualized. Temporary solution to this would be to just generate a few more boids until the 3 radii are present.