https://github.com/bones-ai/rust-ecosystem-simulation
A simple ecosystem simulation written in Rust and Bevy
https://github.com/bones-ai/rust-ecosystem-simulation
bevy-engine ecosystem evolution natural-selection rust-lang
Last synced: about 2 months ago
JSON representation
A simple ecosystem simulation written in Rust and Bevy
- Host: GitHub
- URL: https://github.com/bones-ai/rust-ecosystem-simulation
- Owner: bones-ai
- Created: 2024-01-11T13:18:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-13T19:02:49.000Z (over 1 year ago)
- Last Synced: 2025-03-26T08:06:21.510Z (2 months ago)
- Topics: bevy-engine, ecosystem, evolution, natural-selection, rust-lang
- Language: Rust
- Homepage: https://youtu.be/lCUovKa68jQ
- Size: 616 KB
- Stars: 42
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Procedural World Generation
This is a simple boid ecosystem simulation inspired by Daniel Shiffman's (TheCodingTrain) Ecosystem simulation - https://www.youtube.com/watch?v=flxOkx0yLrYBuilt in [Rust](https://www.rust-lang.org/) using the [Bevy](https://bevyengine.org/) game engine.

## Timelapse video
### Part 1
[](https://youtu.be/lCUovKa68jQ)### Part 2 with predators
[](https://youtu.be/sKYUIlDdC18)## Usage
- Clone the repo
```bash
git clone [email protected]:bones-ai/rust-ecosystem-simulation.git
cd rust-ecosystem-simulation
```
- Run the simulation
```bash
cargo run
```## Controls
- `Backspace` - Show graphs
- `Tilde` - Show graph settings
- `Tab` - Show debug gizmos
- `1` - Camera follow boid
- `2` - Camera follow predator boid
- `3` - Camera snap to center## Configurations
- The project config file is located at `src/configs.rs`