Closed Birch-san closed 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:
b2BodyDef#enabled
b2Body#ApplyLinearImpulseToCenter
Added LeakMitigator for freeing retained references from Emscripten's JS object caches.
LeakMitigator
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.
JSContactListenerWithoutSolveCallbacks
JSContactListener
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:
b2BodyDef#enabled
attribute (resolves https://github.com/Birch-san/box2d-wasm/issues/38)b2Body#ApplyLinearImpulseToCenter
method (resolves https://github.com/Birch-san/box2d-wasm/issues/36)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. PreferJSContactListener
.