A JS port of the C++ Bullet3 physics engine.
Note: It's still under heavy under development. I'm currently still learning emscripten & stuff.
Python 3.5
- Emscripten -- it is also recommended to install MinGW for windows
- Run
pip3 install -r requirements.txt
- Run
python3 bullet.py setup
- Run
python3 bullet.py build
Add your stuff into bullet.idl.
Why not simply use ammo.js?
Valid question. That was also what I initially wanted (and did), but I ended up doing so much changes and refactoring, so decided to create a new project instead. Especially because there were a lot of changes between Ammo's version of Bullet (v2.82) and the once I wanted to port (v2.87).
I know. Somehow I can't get it work there, so every PR is welcome. As a temporary workaround you can use the "Ubuntu" app/bash from MS store to build it.
Bullet.js is licensed under the MIT license.