Box2D physics engine compiled to WebAssembly. Supports TypeScript and ES modules.
Box2D compiled to WebAssembly.
Install the box2d-wasm
npm package
npm i box2d-wasm
Then check out the documentation.
For additional functionality:
You can install from the liquidfun branch like so:
npm i "box2d-wasm@npm:[email protected]"
Zlib-licensed.
Links against MIT-licensed code from Erin Catto's Box2D.
Compiles Zlib-licensed code from Alon Zakai's box2d.js
.
Compared to the existing box2d.js
package: box2d-wasm
aims to support Box2D v2.4.0+ and TypeScript.
See README.dev.md
.