Mesh Library for Processing 3

You might also be interested in bRigid, which uses JBullet. You can download an direct-install it in your libraries folder in order to access the examples.

There is also a Menger Sponge example from PixelFlow that uses bRigid for its physics.

4 Likes