Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ignabelitzky/boids-simulation
Minimalist flocking behavior model using Craig Reynolds' algorithm.
https://github.com/ignabelitzky/boids-simulation
Last synced: about 1 month ago
JSON representation
Minimalist flocking behavior model using Craig Reynolds' algorithm.
- Host: GitHub
- URL: https://github.com/ignabelitzky/boids-simulation
- Owner: ignabelitzky
- License: gpl-3.0
- Created: 2023-12-26T23:27:03.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-12-29T14:20:05.000Z (12 months ago)
- Last Synced: 2023-12-29T18:41:46.130Z (12 months ago)
- Language: C++
- Size: 870 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Boids Simulation in C++ with SFML
[![License](https://shields.io/badge/License-GNU%20General%20Public%20License%20v3.0-green)](LICENSE)
[![SFML](https://img.shields.io/badge/SFML-2.6-brightgreen.svg)](https://www.sfml-dev.org/)
[![Linux](https://img.shields.io/badge/Platform-Linux-blue.svg)](https://www.linux.org/)## 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](https://img.youtube.com/vi/skfMvKqt_Qw/0.jpg)](https://www.youtube.com/watch?v=skfMvKqt_Qw)
## 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
- C++ compiler
- SFML 2.6 or later ([SFML Installation Guide](https://www.sfml-dev.org/tutorials/2.6/))## Getting Started
1. Clone the repository
```bash
git clone https://github.com/ignabelitzky/boids-simulation.git
cd boids-simulation
```
2. Build the project using the Makefile
```bash
make
```
3. Run the executable
```bash
./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](LICENSE). You can find the full text of the license here [LICENSE](LICENSE).