This is a bad fluid sim I made after watching a pretty cool guy make a fluid sim in 4 months, but I thought that I could do it better in less than a day. I did do it, in 4 hours, and it looks pretty convincing, while also being kind of slow because I was too lazy to add any spatial partitioning.
Use W, A, S, or D to move the camera around.
- You can change the physics settings by altering the global constants at the top of the
main.jsandphysics.js. - You can show collision boxes, show displacement by color, add directional indicators, or show the distance calculations for each particle by commenting/uncommenting the labeled code in the
render()function inphysics.js. - You can change how particles are rendered by altering the
circle()function inrender.js. There you will see two constants at the top of the function responsible for controlling how circles are rendered.


