Box2d Wasm Save

Box2D physics engine compiled to WebAssembly. Supports TypeScript and ES modules.

Project README

box2d-wasm

npm version

Box2D compiled to WebAssembly.

Showcase

Usage

Install the box2d-wasm npm package

npm i box2d-wasm

Then check out the documentation.

Alternative distributions

For additional functionality:

  • fluid simulation
  • particle simulation
  • soft-body collisions

You can install from the liquidfun branch like so:

npm i "box2d-wasm@npm:[email protected]"

License

Zlib-licensed.
Links against MIT-licensed code from Erin Catto's Box2D.
Compiles Zlib-licensed code from Alon Zakai's box2d.js.

Project

Compared to the existing box2d.js package: box2d-wasm aims to support Box2D v2.4.0+ and TypeScript.

Developing in this monorepo

See README.dev.md.

Open Source Agenda is not affiliated with "Box2d Wasm" Project. README Source: Birch-san/box2d-wasm
Stars
253
Open Issues
9
Last Commit
1 year ago

Open Source Agenda Badge

Open Source Agenda Rating