Skip to content

Minimalist flocking behavior model using Craig Reynolds' algorithm.

License

Notifications You must be signed in to change notification settings

ignabelitzky/boids-simulation

Repository files navigation

Boids Simulation in C++ with SFML

License SFML Linux

Overview

This C++ application uses the Simple and Fast Multimedia Library (SFML) to simulate flocking behaviour. The simulation involves the movement of autonomous agents, or "boids", that follow simple rules to create cohesie and visually appealing group behaviour.

Boids Simulation

Features

  • Flocking Algorithm: The simulation implements a basic flocking algorithm, where individual agents follow three main rules: separation, alignment and cohesion.
  • SFML Graphics: The application utilizes SFML for graphical rendering, providing an interactive and visually appealing representation of the flocking simulation.

Requirements

Getting Started

  1. Clone the repository
git clone https://github.com/ignabelitzky/boids-simulation.git
cd boids-simulation
  1. Build the project using the Makefile
make
  1. Run the executable
./boids

Usage

  • Press the close button or Alt+F4 to exit the simulation
  • Customize simulation parameters with the sliders, such as speed and forces for alignment, cohesion and separation.

License

This project is licensed under the GNU General Public License v3.0. You can find the full text of the license here LICENSE.