Position Based Fluids Alpha

I have been working on a implementation of this neat paper from Miles Macklin and Matthias Muller at NVIDIA called Position Based Fluids.

The main idea behind PBF is to use the positions of particles coupled with a constraint function for the density to drive the motion of the fluid.  It's in the same family of constrained dynamics that my cloth simulation falls under.  After you solve for the pressure using the density constraint, you add in other fluid-like behaviors such as viscosity and vorticity.

Here's a very short video of the simulation in action: