{"repo":"jrouwe/JoltPhysics.js","free":true,"listed":false,"github":"https://github.com/jrouwe/JoltPhysics.js","clone":"git clone https://github.com/jrouwe/JoltPhysics.js.git","description":"Port of JoltPhysics to JavaScript using emscripten","language":"C++","stars":557,"topics":["game-development","game-engine","javascript","physics","simulation","vr"],"license":"MIT","category":"game-templates","readme_excerpt":"JoltPhysics.js This project enables using Jolt Physics in JavaScript. Demos Go to the demos page to see the project in action. Using This library comes in 7 flavours: - wasm-compat - A WASM version with the WASM file (encoded in base64) embedded in the bundle - debug-wasm-compat - Same as wasm-compat but with debug checking enabled (outputs errors to the console and enables the debug renderer). - wasm - A WASM version with a separate WASM file - asm - A JavaScript version that uses asm.js - wasm-compat-multithread - Same as wasm-compat but with multi threading enabled. - debug-wasm-compat-multithread - Same as wasm-compat-multithread but with debug checking enabled (outputs errors to the console and enables the debug renderer). - wasm-multithread - Same as wasm but with multi threading enabled. See falling shapes.html for an example on how to use the library. Documentation The interface of the library is the same as the C++ interface of JoltPhysics, this means that you can use the C++ documentation as reference. Almost the entire Jolt interface has been exposed. Check JoltJS.idl if a particular interface has been exposed. If not, edit JoltJS.idl and JoltJS.h and send a pull request, or open an issue. Installation This library is distributed as ECMAScript modules on npm: The different flavours are available via entrypoints on the npm package: You can also import esm bundles with unpkg: Where is the version of the library you want to use. Using the WASM flavour To use the wasm ","default_branch":null,"files":null,"tree":[],"storefront":"/r/jrouwe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jrouwe/JoltPhysics.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}