Flock You!

A Simple Boids implementation

Video

Key Details

Made using C++ and SDL.

A simple AI implementation of Boids to demonstrate flocking behaviour.

Uses 3 Rules for the Boids, a speed limiter and a rough boundaries check.

Source code on GitHub

Online version of the documentation

About

This is a simple AI implementation of Boids to demonstrate flocking behaviour. This was originally given to me as a task to do in a lab, however I carried it on and finished in my spare time. This version has 3 rules implemented, along with a speed limiter for the Boids and a rough boundaries check so that the Boids stay on the screen. Rule 1 - Boids try to fly towards the centre of mass of neighbouring Boids. Rule 2 - Boids try to keep a small distance away from other objects (including other Boids). Rule 3 - Boids try to match velocity with near Boids.





© 2024 Jamie Slowgrove