A desktop application with a particle fluid simulation where the user interacts with the fluid by moving and resizing the application window.
- Java 100%
|
|
||
|---|---|---|
| assets | ||
| Panels | ||
| PhysicsEngine | ||
| Utils | ||
| .gitignore | ||
| App.java | ||
| README.md | ||
FluidSimulation
A desktop application with a particle fluid simulation where the user interacts with the fluid by moving and resizing the application window.
How to use:
- Launch the app.
- Click and hold on the window to spawn particles. You can control the number of particles spawned by scrolling. (Works best with mouse.)
- At the top right you see a control panel. It has:
- A reset button. Clicking it once will make the fluid flow out of the window. Clicking it twice will make the fluid disappear immediately.
- A slider for particle size.
- A slider for viscosity.
- A 'stop' button, which will leave the particles on the screen, but pause the simulation.
Limitiations
The application will only work on the primary screen device; When a lot of fluid is stacked, so the depth is high, the fluid may become unstable in deeper regions; Fluid can be compressed further than its volume/area.
Disclaimer
This project was developed and tested on Windows. We cannot guarantee it will work on operating systems different from Windows.