belinghy / JoltPhysics.js

Port of JoltPhysics to JavaScript using emscripten

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JoltPhysics.js

This project enables using Jolt Physics in JavaScript.

Demos

Using

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.

Building

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

Credits

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.

License

The project is distributed under the MIT license.

About

Port of JoltPhysics to JavaScript using emscripten

License:MIT License


Languages

Language:C++ 65.9%Language:CMake 32.3%Language:JavaScript 1.5%Language:Shell 0.3%