box2d-wasm
Box2D compiled to WebAssembly. Demo.
Demo includes sourcemaps to original C++ source.
Compatibility: Box2D v2.4.1
Asset | Purpose | Size | Size (.gz) |
---|---|---|---|
Box2D.js |
Provides helpers for you to invoke functionality from Box2D.wasm
|
290kB | 40kB |
Box2D.wasm |
Box2D physics engine | 213kB | 78kB |
Detailed TypeScript declarations are included (generated via webidl-to-ts
from WebIDL bindings).
Installation
Install the box2d-wasm
npm package
npm i --save box2d-wasm
Then check out the documentation.
License
Zlib-licensed.
Links against MIT-licensed code from Erin Catto's box2d.
Compiles Zlib-licensed code from Alon Zakai's box2d-js.
Developing this package
See README.dev.md
.