JBox2D is a port of a C++ physics engine to Java. Being Java means you can use it in Processing. Being Processing means you can use it for fun. And the demos, behold, they are fun!