box2d.js icon indicating copy to clipboard operation
box2d.js copied to clipboard

Allocating an array

Open unphased opened this issue 11 years ago • 1 comments

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.

unphased avatar Oct 08 '12 23:10 unphased

Emscripten does provide memory management functions for this, they're used in embox2d-helpers.js which creates chain and polygon shapes.

jobtalle avatar Jul 17 '18 16:07 jobtalle