I searched everywhere for sample javascript code for this (based on Box2D which is a C++ library) and finally found something functional.
The only things I added were html controls for the objects.
Most of it is based off of https://github.com/doebi/liquidfun.js-demo/tree/master
If you want faster framerate, shrink your window.
@AdCharity rotational physics 2 scary 4 me
I searched everywhere for sample javascript code for this (based on Box2D which is a C++ library) and finally found something functional.
The only things I added were html controls for the objects.
Most of it is based off of https://github.com/doebi/liquidfun.js-demo/tree/master
If you want faster framerate, shrink your window.
Hotkeys:
• B : Create physics box
• W : Create blob of fluid
• Left mouse: Create Blob of Fluid
• Right mouse: Create frozen box
• Middle mouse: Create physics box
@AdCharity rotational physics 2 scary 4 me