Skip to content

shajidhasan/mobile-fluid-sim

Repository files navigation

mobile-fluid-sim

A real-time fluid simulation that runs in your browser and reacts to mobile device sensors. Built using the FLIP (Fluid-Implicit-Particle) technique for realistic fluid dynamics.

Try it live at fluid.sh4jid.me

Demo

Fluid Simulation Demo

About

This project implements fluid simulation techniques taught by the amazing Ten Minute Physics YouTube channel, particularly from this video.

The initial inspiration for this project came from Nicholas L. Johnson's flip-card project.

Since creating this simulation, it has become my go-to digital fidget toy. You can install it as a PWA too!

Todo

  • Add more interaction options
    • Change color with shake
    • Control flow with finger
  • Add viscosity control

Support

If you enjoy this project, consider buying me a coffee!

Buy Me A Coffee

Development

pnpm install
pnpm dev

License

MIT License - see LICENSE file for details.

Contributing

Pull requests are welcome! Feel free to contribute improvements or new features.

About

A real-time fluid simulation that runs in your browser and reacts to mobile device sensors.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published