https://github.com/100-tomatojuice/bevy_falling_sand
A velocity-based falling sand simulation built with Rust and Bevy
https://github.com/100-tomatojuice/bevy_falling_sand
bevy falling-sand rust
Last synced: 3 months ago
JSON representation
A velocity-based falling sand simulation built with Rust and Bevy
- Host: GitHub
- URL: https://github.com/100-tomatojuice/bevy_falling_sand
- Owner: 100-TomatoJuice
- License: apache-2.0
- Created: 2023-10-09T01:54:18.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-07T21:42:44.000Z (over 1 year ago)
- Last Synced: 2025-04-19T20:13:20.927Z (6 months ago)
- Topics: bevy, falling-sand, rust
- Language: Rust
- Homepage:
- Size: 40 KB
- Stars: 23
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# ⏳ Bevy Falling Sand
[](https://github.com/100-TomatoJuice/bevy_falling_sand#license)
A velocity-based falling sand simulation built with Rust and Bevy!
This simulation uses [bevy_rapier](https://crates.io/crates/bevy_rapier2d) to generate colliders that regular rigidbodies can interact with.
This allows for a player to affect the simulation and, since each particle type can have its separate collider, particle-based status effects!Currently, the simulation is chunk-based, meaning that only chunks who have updating particles are simulated.
## ⚛ Particle Mappings
Particle | Mapping
--- | ---
Sand | 1
Water | 2
Stone | 3
Acid | 4
Wood | 5
Spark | 6
Lava | 7
Oil | 8
Gunpowder | 9
TNT | 0
Dirt | -
Grass | =## ⚙️ How to Test
- Download the `.zip`
- Extract the `.zip` and open the folder in preferred IDE
- In the terminal, type `cargo run --release` to run the project