Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 659 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 659 Bytes

Rust Boid Simulation

This project aims to simulate a flocking mechanism in Rust. I used nannou for visual representation and vectors.

The three components that make up the flocking mechanism are:

  • alignment
  • cohesion
  • separation

In this project I also investigate some simpler mechanisms, such as fleeing, pursuing, and seeking.

Execution

To run the flocking simulation, run the following command:

cargo run --bin flock

All other experiments can be executed by replacing flock for the respective file name in the bin folder.

Example

Flocking in execution

Image example of flocing in execution