This project is a fluid simulation sample built using the Bevy engine.
Try it on here!
- Invicid, incompressible 2D fluid simulation
- One-way solid body to fluid interaction
To run the Bevy Fluid Sample, you will need to have Rust and Cargo installed on your system. Follow these steps to get up and running:
- Clone the repository:
git clone git@github.com:narasan49/bevy-fluid-sample.git
- Navigate to the project directory:
cd bevy-fluid-sample
- Build and run the project:
I have some examples to demonstrate my fluid simulation:
-
Imposing forces with mouse and touch input (Also available here)
cargo run --example interaction
2024-08-15.134607.mp4
-
Solid-to-fluid feedback
cargo run --example demo
2024-08-15.134700.mp4
-
The simulation is inspired by and based on the algorithms described in these books:
- Fluid Simulation for Computer Graphics by Robert Bridson
- GPU Gems Chapter 38 by Mark J. Harris
I alse use Kenny assets for examples.