Fluidrs is a simple fluid simulator written in Rust with raylib and imgui. This project was created for educational purposes and to learn more about fluid simulation.
- 2D fluid simulation
- Ability to change fluid and simulation parameters live with ImGui
- Enjoy the beauty of playing with fluids
Just clone the repository and build the program (preferably in release mode):
git clone [email protected]:MiliAxe/fluidrs.gitcargo run --releaseYou might need to change the Deltatime DT in the src/config.rs file to get the best performance on your machine.
- Left click to add fluid
- Hold right click to add velocity in the mouse direction
Thanks to Mike Ash's blog post for the great explanation of fluid simulation. Most of the calculation is based on his explanation.
