Intro to Boids - A raylib simulation
MelonFruit MelonFruit
427 subscribers
4 views
2

 Published On Sep 27, 2024

This video covers an implementation approach of the Boids algorithm thought up by Craig Reynolds. The Boids algorithm is an artificial life simulation that simulates the flocking behaviors of birds. Personally I think it looks sick, so I made this video on it. I used C++ and the raylib library to code this, but any GUI library should, work. Lastly I'm using Ubuntu so some things may be different if you're on windows/mac.

My main resource when making this video was this web page:
https://vanhunteradams.com/Pico/Anima...

All of the code is on my github if you'd like to check it out, including the code that was used to make this video's animations: https://github.com/MelonFruit7/IntroT...

Timestamps:
0:00 - Intro
0:41 - What are Boids
1:19 - Files needed
1:30 - Main file
1:55 - Header files
2:20 - RealVector class
2:57 - Boid class
4:40 - Use boid class
5:08 - Demo 1
5:31 - Bound_boid/Limit_speed functions
6:42 - Use Bound_boid/Limit_speed
7:00 - Demo 2
8:02 - Add multiple boids
8:45 - Demo 3
9:20 - Alter_boid_path function
11:35 - Use Alter_boid_path
12:06 - Demo 4 (Boids Completed)
12:52 - Extra Functionality
16:47 - Ending

#boids #raylib

show more

Share/Embed