Skip to content

Birch-san/box2d-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

826c74e · Dec 29, 2024
Nov 28, 2021
Nov 4, 2020
May 14, 2024
Jul 8, 2021
May 14, 2024
Nov 28, 2021
Jul 8, 2021
May 9, 2022
Apr 3, 2021
Oct 7, 2020
Nov 29, 2021
Oct 7, 2020
Nov 27, 2020
May 9, 2022
Dec 29, 2024
Nov 26, 2020
May 9, 2022
May 9, 2022
Nov 26, 2020

Repository files navigation

box2d-wasm

npm version

Box2D v2.4 compiled to WebAssembly. For Box2D v3.0 see this repository

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:liquidfun-wasm@6.0.4-lf.1"

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.