Personal project
Boids
An implementation of Craig Reynolds' Boids, built in Rust with the Bevy engine, compiled to WebAssembly. My first Rust project.
About
This is Nishant Dash's implementation of Craig Reynolds' Boids. It was created in Rust using the Bevy game engine and was compiled to Web Assembly. This was my first project using Rust.
What Are Boids?
Boids are meant to simulate and model flocking behaviors like birds and fish. There are three simple behaviors that go into achieving this.
- Cohesion: Boids try to stay close to surrounding boids by moving toward the average position of nearby boids.
- Separation: Boids avoid crowding near other boids.
- Alignment: Boids move in the average direction of neighboring boids.
Using these three behaviors, we are able to simulate flocking behavior.
Demonstration
Below is a web version of the boids program. View in landscape orientation to get the best experience. You may notice that the boids will start to form groups, similar to what birds do when flocking.
Note: The demonstration may take a moment to appear.