Birch-san / box2d-wasm

Box2D physics engine compiled to WebAssembly. Supports TypeScript and ES modules.
265 stars 21 forks source link

Expose methods #39

Closed Birch-san closed 2 years ago

Birch-san commented 2 years ago

Closes https://github.com/Birch-san/box2d-wasm/issues/38
Closes https://github.com/Birch-san/box2d-wasm/issues/36
Closes https://github.com/Birch-san/box2d-wasm/issues/35

Exposed:

Added LeakMitigator for freeing retained references from Emscripten's JS object caches.

Deleted (unreachable) type JSContactListenerWithoutSolveCallbacks (resolves https://github.com/Birch-san/box2d-wasm/issues/35); the performance problem it was designed to solve (eliminating WASM->JS calls) is not a problem nowadays. Prefer JSContactListener.