This project enables using Jolt Physics in JavaScript.
- Falling Shapes Demo - Shows supported shape types.
- Constraints Demo - Shows supported constraint types.
- Stress Test Demo - Shows big pile of blocks.
A precompiled version of the library is here. See falling_shapes.html for an example on how to use the library.
Not all of the Jolt interface has been exposed yet. If you need something, just add it to JoltJS.idl and JoltJS.h and send a pull request.
This project has only been compiled under Linux.
- Install emscripten and ensure that its environment variables have been setup
- Install cmake
- Ensure you clone this project with its submodules:
git clone --recursive https://github.com/jrouwe/JoltPhysics.js.git
- Run ./build.sh
This project was started from the Ammo.js code, but little remains of it as the Jolt Physics API is very different from the Bullet API.
The project is distributed under the MIT license.