Skip to content

v4.0.0-liquidfun.0

Compare
Choose a tag to compare
@Birch-san Birch-san released this 24 Feb 00:11
· 81 commits to master since this release
9311ab4

Liquidfun is a fork of Box2D which adds support for fluid simulation and soft-body physics.

Liquidfun forked from Box2D at v2.3.0, circa November 2013.
The C++ differences are something like this:
https://github.com/erincatto/box2d/compare/master...Birch-san:liquidfun?expand=1

I've (manually) rebased their changes onto latest Box2D, v2.4.1:
https://github.com/erincatto/box2d/compare/master...Birch-san:liquidfun-rebase?expand=1

This box2d-wasm repository consumes the alternate Box2D source by:

  • pointing the box2d git submodule at the liquidfun-rebase branch
  • providing WebIDL bindings to the new functionality (classes for dealing with particles)

The specific changes to this box2d-wasm repository are in this liquidfun branch:
https://github.com/Birch-san/box2d-wasm/compare/liquidfun?expand=1

An example of how to invoke liquidfun functionality is in the changes to integration-test in that branch. In particular, integration-test/src/world.ts.

This liquidfun branch will not be merged into box2d-wasm (because that would overwrite mainline Box2D). Instead, it will continue its life as a branch. If changes are required, they can be merged into this branch, and new releases can be cut.

EDIT: New release convention
As of v4.0.2, liquidfun releases are published under a separate package name: liquidfun-wasm.
See liquidfun-v4.0.2 release for latest npm installation instructions.