A real-time SPH (Smoothed Particle Hydrodynamics) fluid simulator running in the terminal.
cargo install --path .Or run directly:
cargo run --releaseq- quiti- toggle info panels- toggle settings panel
↑/↓- navigate parameters←/→- decrease/increase selected parameterr- reset selected parameter to default
- left click & drag - apply attractive force
- right click & drag - apply repulsive force
The settings panel lets you adjust simulation parameters in real-time:
- Particle Count - number of fluid particles
- Gravity - downward force
- Target Density - rest density of the fluid
- Viscosity - fluid thickness/resistance
- Stiffness - pressure response strength
- Smoothing Radius - particle interaction distance
- Dampening - boundary energy loss
- Mouse Force - strength of mouse interactions
- Mouse Radius - range of mouse forces
- add actual fish