Box2D/LiquidFun Library for Processing.
Box2D/LiquidFun Library for Processing.
Particle based fluid simulation and rigid body simulation using jBox2D/LiquidFun 2.3.0+.
The library includes a lot of examples from the original jbox2d testbed.
For a quick start, each sketch has a couple of default mouse-actions:
... as well as some key-mapping, e.g. to display the debug-draw, restart, pause/resume.
Of course, each of those can be altered, overwritten or disabled/removed.
particles are rendered as point-sprites and rigid bodies are rendered using the PShape tree structure.
LiquidFx adds some liquid effect and fake shading. PixelFlow needs to be installed to use it.
using the box2d world for rendering and basic processing draw calls.
Download Processing 3
Install liquidFunProcessing via the Library Manager.
Or manually, unzip and put the extracted LiquidFunProcessing folder into the libraries folder of your Processing sketches. Reference and examples are included in the LiquidFunProcessing folder.
Also make sure you have the latest graphics card driver installed!
Windows, Linux, MacOSX