Coding Adventure: Boids
From Sebastian Lague · · 8 min

The player loads from YouTube only when you click. It uses YouTube's privacy-enhanced mode.
If the video does not play, the owner may have turned off embedding. Watch it on YouTube instead.
Description
Trying to create some flocking behaviour, and getting a little distracted by spirals along the way...
Links and Resources: Project source: https://github.com/SebLague/Boids/tree/master Boids paper: http://www.cs.toronto.edu/~dt/siggraph97-course/cwr87/ Points on a sphere: https://stackoverflow.com/a/44164075 Fish shader: https://github.com/albertomelladoc/Fish-Animation/blob/master/FishAnimation.shader and https://www.bitshiftprogrammer.com/2018/01/how-to-animate-fish-swimming-with.html
If you'd like to support the creation of more programming videos, I'd greatly appreciate your support on patreon: https://www.patreon.com/SebastianLague
Chapters: 0:00 Intro 0:26 The three rules of being a boid 1:44 Obstacle avoidance 3:03 Getting sidetracked by spirals 6:12 Back to obstacle avoidance 6:55 Obstacle course and optimization 7:47 Swimming with the fishies
Music: "Beauty Flow" Kevin MacLeod (incompetech.com) Licensed under Creative Commons: By Attribution 4.0 License http://creativecommons.org/licenses/by/4.0/