box2d.js
box2d.js copied to clipboard
Allocating an array
How can I allocate an array in order to specify geometry (e.g. for a chain shape or polygon shape)?
Doesn't look like box2d.js was compiled with malloc.
Emscripten does provide memory management functions for this, they're used in embox2d-helpers.js which creates chain and polygon shapes.