Skip to content

A Lua/Love2D physics simulation of stable fluids implenting Jos Stam's paper on the subject.

License

Notifications You must be signed in to change notification settings

ActivexDiamond/stable-fluid-dynamics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stable Fluid Dynamics Library

A Lua/Love2D physics simulation of stable fluids implenting Jos Stam's paper on the subject. Can be run as a stand-alone sandbox to explore the concept or used as a Lua library to implement this behavior into your own game or project.

Demo

Demo Gif

Demo Gif 2

Controls

  • LMB -> Add static density source.
  • RMB -> Add static density source with a random velocity.
  • LMB + Shift -> Remove density.
  • RMB + Shift -> Remove velocity.

Note: Currently, once a source is added there is no way to remove or modify it. (WIP)

References

A pure-Lua implementation of Jos Stam's 2003 paper "Real-Time Fluid Dynamics for Games"

The link above directs to a freely accessible online pdf of his paper.

Special thanks to Gonkee's (YouTube channel) video --- "But How Do Fluid Simulations Work?" --- for introducing me to this concept and paper.

About

A Lua/Love2D physics simulation of stable fluids implenting Jos Stam's paper on the subject.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages