{"_id":"ammo.js","_rev":"12-51c0223f55c390bf029111612e3968ec","name":"ammo.js","description":"Direct port of the Bullet physics engine to JavaScript using Emscripten","dist-tags":{"latest":"0.0.10"},"versions":{"0.0.2":{"name":"ammo.js","version":"0.0.2","description":"Direct port of the Bullet physics engine to JavaScript using Emscripten","main":"builds/ammo.js","repository":{"type":"git","url":"git://github.com/kripken/ammo.js.git"},"author":{"name":"Alon Zakai","email":"alonzakai@gmail.com"},"bugs":{"url":"https://github.com/kripken/ammo.js/issues"},"homepage":"https://github.com/kripken/ammo.js","contributors":[{"name":"The following authors have all licensed their contributions to ammo.js"},{"name":"under the licensing terms detailed in LICENSE."},{"name":"* Alon Zakai","email":"alonzakai@gmail.com","url":"copyright owned by Mozilla Foundation"}],"gitHead":"c1ad19691af6b4a56e2196c51f20dfb86ca7119d","_id":"ammo.js@0.0.2","scripts":{},"_shasum":"8126a9697ccf569f37ecd9452f8d50749f9bca60","_from":".","_npmVersion":"3.3.5","_nodeVersion":"4.1.1","_npmUser":{"name":"caseywebdev","email":"c@sey.me"},"dist":{"shasum":"8126a9697ccf569f37ecd9452f8d50749f9bca60","tarball":"https://registry.npmjs.org/ammo.js/-/ammo.js-0.0.2.tgz","integrity":"sha512-hDV8olaUKLgAdgnPgzJEYqtSKwc5stZ7gG0guxPzsrWmZ92KI6g0cqLuSAXS2BqKv9MTKde0r+Xdnhl10h8d3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbesoe4Mq1xDNe7qwKbaXd+uMMY1qyA6x0IvDM2zx06gIhALZZ6h8NBoolecPbCLaYZv8i2Y1kaLzmT2k3p+j6Vexb"}]},"maintainers":[{"name":"caseywebdev","email":"c@sey.me"}]},"0.0.3":{"name":"ammo.js","version":"0.0.3","description":"Direct port of the Bullet physics engine to JavaScript using Emscripten","main":"builds/ammo.js","repository":{"type":"git","url":"git://github.com/kripken/ammo.js.git"},"author":{"name":"Alon Zakai","email":"alonzakai@gmail.com"},"bugs":{"url":"https://github.com/kripken/ammo.js/issues"},"homepage":"https://github.com/kripken/ammo.js","contributors":[{"name":"The following authors have all licensed their contributions to ammo.js"},{"name":"under the licensing terms detailed in LICENSE."},{"name":"* Alon Zakai","email":"alonzakai@gmail.com","url":"copyright owned by Mozilla Foundation"}],"gitHead":"89c77ed061754b537a15fe8add55c752e8f1f472","_id":"ammo.js@0.0.3","scripts":{},"_shasum":"2ef7bb3463f72bad851ac491f9fa3fa05bbc4d23","_from":".","_npmVersion":"3.3.5","_nodeVersion":"4.1.1","_npmUser":{"name":"caseywebdev","email":"c@sey.me"},"dist":{"shasum":"2ef7bb3463f72bad851ac491f9fa3fa05bbc4d23","tarball":"https://registry.npmjs.org/ammo.js/-/ammo.js-0.0.3.tgz","integrity":"sha512-0FYQE6HOuB84/NS4EenUQkMh4bLAc6o6pXjRTW09n6Shbhq30RxORmRQ0iNWPNGUwA+eM/+175rVdvm3+Rg7uQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDz6oG6hpwiuq2Pu4M7+MUBPY2RlyzH+5iqnFSWk6WNkAiEAt1BNBRPoPzfGk9pJj6PkxuQ8c53YeDNF4vzZny/CUXg="}]},"maintainers":[{"name":"caseywebdev","email":"c@sey.me"}]},"0.0.4":{"name":"ammo.js","version":"0.0.4","description":"Direct port of the Bullet physics engine to JavaScript using Emscripten","main":"ammo.js","repository":{"type":"git","url":"git://github.com/kripken/ammo.js.git"},"author":{"name":"Alon Zakai","email":"alonzakai@gmail.com"},"bugs":{"url":"https://github.com/kripken/ammo.js/issues"},"homepage":"https://github.com/kripken/ammo.js","contributors":[{"name":"The following authors have all licensed their contributions to ammo.js"},{"name":"under the licensing terms detailed in LICENSE."},{"name":"* Alon Zakai","email":"alonzakai@gmail.com","url":"copyright owned by Mozilla Foundation"}],"gitHead":"a0f8a474b92db906f3120742772643e2fb5e7dee","_id":"ammo.js@0.0.4","scripts":{},"_shasum":"bca5c0d8e648fd91bbebc967a1616e8dfd16a87e","_from":".","_npmVersion":"3.3.5","_nodeVersion":"4.1.1","_npmUser":{"name":"caseywebdev","email":"c@sey.me"},"dist":{"shasum":"bca5c0d8e648fd91bbebc967a1616e8dfd16a87e","tarball":"https://registry.npmjs.org/ammo.js/-/ammo.js-0.0.4.tgz","integrity":"sha512-Ow9hTSt6kmBPZo08y30byD0Z7MfuPJCs8seeB7AfRoqtqDXVnKOPTXD/3shF5XYfnAoXK19Oa+7lHAXVxMm5zw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICTjwZtiZYaG1udmC+PfTYof5WpEr3huwu7iKjM7057UAiEArHTq57j/uD3apPiKi3IfGyOS6bgFmVayQA2Otismuqk="}]},"maintainers":[{"name":"caseywebdev","email":"c@sey.me"}]},"0.0.5":{"name":"ammo.js","version":"0.0.5","description":"Direct port of the Bullet physics engine to JavaScript using Emscripten","main":"ammo.js","repository":{"type":"git","url":"git://github.com/kripken/ammo.js.git"},"author":{"name":"Alon Zakai","email":"alonzakai@gmail.com"},"bugs":{"url":"https://github.com/kripken/ammo.js/issues"},"homepage":"https://github.com/kripken/ammo.js","contributors":[{"name":"The following authors have all licensed their contributions to ammo.js"},{"name":"under the licensing terms detailed in LICENSE."},{"name":"* Alon Zakai","email":"alonzakai@gmail.com","url":"copyright owned by Mozilla Foundation"}],"gitHead":"7646e5293a0e956975b73405c0e3f8496899dbe5","_id":"ammo.js@0.0.5","scripts":{},"_shasum":"9ec4b164eb7c0d7f52fbced11b1212216eb1e3c2","_from":".","_npmVersion":"3.3.5","_nodeVersion":"4.1.1","_npmUser":{"name":"caseywebdev","email":"c@sey.me"},"dist":{"shasum":"9ec4b164eb7c0d7f52fbced11b1212216eb1e3c2","tarball":"https://registry.npmjs.org/ammo.js/-/ammo.js-0.0.5.tgz","integrity":"sha512-EsYSabEcSv3MHu/zutSMrc/tIaQ3zhwR0dgyWqlj70EDE5TSo1ICf5zzyjMORwxL1XQ6Prw0V1SDwjHl3onXtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHUqDvHt1JcUzW5Qg1F/Vxqks34ZpCmkqPkeB8HzK1BtAiEAgzlkwK4eNzvF5mVehbjOIE9Vr1uzaaqPz70OPNOJKWE="}]},"maintainers":[{"name":"caseywebdev","email":"c@sey.me"}]},"0.0.6":{"name":"ammo.js","version":"0.0.6","description":"Direct port of the Bullet physics engine to JavaScript using Emscripten","main":"ammo.js","repository":{"type":"git","url":"git://github.com/kripken/ammo.js.git"},"author":{"name":"Alon Zakai","email":"alonzakai@gmail.com"},"bugs":{"url":"https://github.com/kripken/ammo.js/issues"},"homepage":"https://github.com/kripken/ammo.js","contributors":[{"name":"The following authors have all licensed their contributions to ammo.js"},{"name":"under the licensing terms detailed in LICENSE."},{"name":"* Alon Zakai","email":"alonzakai@gmail.com","url":"copyright owned by Mozilla Foundation"}],"gitHead":"2294040c242e77b2e364f682718b559b2eef24ad","_id":"ammo.js@0.0.6","scripts":{},"_shasum":"3f9ae42ecc5516c69f817d7188384ca5611048e2","_from":".","_npmVersion":"3.3.5","_nodeVersion":"4.1.1","_npmUser":{"name":"caseywebdev","email":"c@sey.me"},"dist":{"shasum":"3f9ae42ecc5516c69f817d7188384ca5611048e2","tarball":"https://registry.npmjs.org/ammo.js/-/ammo.js-0.0.6.tgz","integrity":"sha512-5n9QnNqfFwgJ0lAvV2oHaR0JJTOlGJEo0RgxIeXmNzxWJLU3OztJwVhFfcp5gXWH8J3kJtKoMkseitUXsxmJqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzQCENU4CumKwioWL529UKEUU9kxjAMfqZmYNZi0fDXwIgEpf1wNH9BtVICLjpTXwZTWspUmHbCB7yfTMAWg3VodA="}]},"maintainers":[{"name":"caseywebdev","email":"c@sey.me"}]},"0.0.7":{"name":"ammo.js","version":"0.0.7","description":"Direct port of the Bullet physics engine to JavaScript using Emscripten","main":"ammo.js","repository":{"type":"git","url":"git://github.com/kripken/ammo.js.git"},"author":{"name":"Alon Zakai","email":"alonzakai@gmail.com"},"bugs":{"url":"https://github.com/kripken/ammo.js/issues"},"homepage":"https://github.com/kripken/ammo.js","contributors":[{"name":"The following authors have all licensed their contributions to ammo.js"},{"name":"under the licensing terms detailed in LICENSE."},{"name":"* Alon Zakai","email":"alonzakai@gmail.com","url":"copyright owned by Mozilla Foundation"}],"gitHead":"81e98295cb9c104d7369ff5422d17b3975a6dbdd","_id":"ammo.js@0.0.7","scripts":{},"_shasum":"0ebc34c1dfb75543b36ca8b1aa9601c0b929be3e","_from":".","_npmVersion":"3.3.5","_nodeVersion":"4.1.2","_npmUser":{"name":"caseywebdev","email":"c@sey.me"},"dist":{"shasum":"0ebc34c1dfb75543b36ca8b1aa9601c0b929be3e","tarball":"https://registry.npmjs.org/ammo.js/-/ammo.js-0.0.7.tgz","integrity":"sha512-EU08lNN5Bban7J8EoWDqdujW1DU7ZOZIOtJyH5+jboAHuvOQZPgAJczQj2oT9QgQLTD+r2aj2O95bEajPMVDxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBIwY1fGKBbXdXKkrbN70PGOD5eqwJpnOy7YcstB9utKAiBB7jftJRK5VrIH1VGH5Nq8YAGeG70t5dJSHhL61tjYrA=="}]},"maintainers":[{"name":"caseywebdev","email":"c@sey.me"}]},"0.0.8":{"name":"ammo.js","version":"0.0.8","description":"Direct port of the Bullet physics engine to JavaScript using Emscripten","main":"ammo.js","repository":{"type":"git","url":"git://github.com/kripken/ammo.js.git"},"author":{"name":"Alon Zakai","email":"alonzakai@gmail.com"},"bugs":{"url":"https://github.com/kripken/ammo.js/issues"},"homepage":"https://github.com/kripken/ammo.js","contributors":[{"name":"The following authors have all licensed their contributions to ammo.js"},{"name":"under the licensing terms detailed in LICENSE."},{"name":"* Alon Zakai","email":"alonzakai@gmail.com","url":"copyright owned by Mozilla Foundation"}],"gitHead":"0f66fb48c4715b16560ae7f1682aca62679dade9","_id":"ammo.js@0.0.8","scripts":{},"_shasum":"ef0e5ad13ebbab68c1e4e885b1803bde4c2294b7","_from":".","_npmVersion":"3.3.6","_nodeVersion":"4.1.2","_npmUser":{"name":"caseywebdev","email":"c@sey.me"},"dist":{"shasum":"ef0e5ad13ebbab68c1e4e885b1803bde4c2294b7","tarball":"https://registry.npmjs.org/ammo.js/-/ammo.js-0.0.8.tgz","integrity":"sha512-u/EfF+SZQaT6o0j6gxKTVos9y2s9xnFBmS6c5v9/5Ayn8zBj7PNiEBu0XVqzdtx+87M2lE1SMVP+mrW2VnPz7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnN4vDVKije3XrUI3NllDSDJbqyYyIqFkt+1fVcEoQ8AIgdu+EPsTaSBeUqZV/uxfWyzEg+klNb7gq2tY/4e8Dus0="}]},"maintainers":[{"name":"caseywebdev","email":"c@sey.me"}]},"0.0.9":{"name":"ammo.js","version":"0.0.9","description":"Direct port of the Bullet physics engine to JavaScript using Emscripten","main":"ammo.js","repository":{"type":"git","url":"git://github.com/kripken/ammo.js.git"},"author":{"name":"Alon Zakai","email":"alonzakai@gmail.com"},"bugs":{"url":"https://github.com/kripken/ammo.js/issues"},"homepage":"https://github.com/kripken/ammo.js","contributors":[{"name":"The following authors have all licensed their contributions to ammo.js"},{"name":"under the licensing terms detailed in LICENSE."},{"name":"* Alon Zakai","email":"alonzakai@gmail.com","url":"copyright owned by Mozilla Foundation"}],"gitHead":"5fa4053e9f987702b0cf9eac6c2eae2cca66a42a","_id":"ammo.js@0.0.9","scripts":{},"_shasum":"e1aa95a773a3c66ead627416915bae67fbcdaf42","_from":".","_npmVersion":"3.5.4","_nodeVersion":"5.5.0","_npmUser":{"name":"caseywebdev","email":"c@sey.me"},"dist":{"shasum":"e1aa95a773a3c66ead627416915bae67fbcdaf42","tarball":"https://registry.npmjs.org/ammo.js/-/ammo.js-0.0.9.tgz","integrity":"sha512-C//ODvhBoYL9V18/Gdij0YsR+fStCUPtB5Z/nEeVkkZEOHVHmfhU6VIrJfFQv+8WgAkMcn+9ZNyUC0WHFqnOJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4EQeYWKzhjZQBs66ee98B6coGZcDG6Wg4XX0hCbzfOgIgeOFLoMRjZx4fwM1bVioFsWcetVyHdZCObtqwNOK+Kuo="}]},"maintainers":[{"name":"caseywebdev","email":"c@sey.me"}]},"0.0.10":{"name":"ammo.js","version":"0.0.10","description":"Direct port of the Bullet physics engine to JavaScript using Emscripten","main":"ammo.js","repository":{"type":"git","url":"git://github.com/kripken/ammo.js.git"},"author":{"name":"Alon Zakai","email":"alonzakai@gmail.com"},"bugs":{"url":"https://github.com/kripken/ammo.js/issues"},"homepage":"https://github.com/kripken/ammo.js","contributors":[{"name":"The following authors have all licensed their contributions to ammo.js"},{"name":"under the licensing terms detailed in LICENSE."},{"name":"* Alon Zakai","email":"alonzakai@gmail.com","url":"copyright owned by Mozilla Foundation"}],"gitHead":"afcd3510970c00399afcdc2465f21dada94c05b5","_id":"ammo.js@0.0.10","scripts":{},"_shasum":"afd16e7186dd3cf784374464f3a4e58f37776950","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.10.1","_npmUser":{"name":"caseywebdev","email":"c@sey.me"},"dist":{"shasum":"afd16e7186dd3cf784374464f3a4e58f37776950","tarball":"https://registry.npmjs.org/ammo.js/-/ammo.js-0.0.10.tgz","integrity":"sha512-jOv977u71jrDUzHfmQ99YaW90/y8YLn/3HFTmtLLzf5wJynAfG+/a1Ie5gbn0fE0uSAHxXVsFk4Bzq8qRPWqAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9aS3oVn6xQ4xsfnJW4HEZQzW8+tY1FyXlTHYFsRR6bwIhALIU3nUXNnOtDUkdyPCmxmAFsMxeMUp/kk4ZJyqf9Sq9"}]},"maintainers":[{"name":"caseywebdev","email":"c@sey.me"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/ammo.js-0.0.10.tgz_1460913819878_0.209647037088871"}}},"readme":"ammo.js\n=======\n\n\n**Demo: http://kripken.github.com/ammo.js/examples/new/ammo.html**\n\n**Example code to give you an idea of the API: https://github.com/kripken/ammo.js/blob/master/examples/webgl_demo/ammo.html#L14**\n\nammo.js is a direct port of the [Bullet physics engine](http://bulletphysics.org/) to JavaScript, using Emscripten. The source code is translated directly to JavaScript, without human rewriting, so functionality should be identical to the original Bullet.\n\n**Note: ammo.js has just been updated to a new porting approach. If you find some part of the Bullet API that is not supported that you need, please see https://github.com/kripken/ammo.js/issues/60**\n\n'ammo' stands for \"Avoided Making My Own js physics engine by compiling bullet from C++\" ;)\n\nammo.js is zlib licensed, just like Bullet.\n\nDiscussion takes place on IRC at #emscripten on Mozilla's server (irc.mozilla.org)\n\n\nInstructions\n------------\n\n`builds/ammo.js` contains a prebuilt version of ammo.js. This is probably what you want.\n\nYou can also build ammo.js yourself, as follows:\n\n * Get Emscripten\n\n      http://emscripten.org\n\n   and set it up. See\n\n      https://github.com/kripken/emscripten/wiki/Getting-started\n\n * Run the build script,\n\n      `python make.py`\n\n   which should generate builds/ammo.js.\n\n * Optionally, run the automatic tests,\n\n      `python test.py`\n\n\nUsage\n-----\n\nThe most straightforward thing is if you want to write your code in C++, and\nrun that on the web. If so, then compile your code into LLVM, link it with\nbullet, and compile that to JavaScript using emscripten. (The easiest way to\nlink it is to add your .bc file to the llvm-link command in make.py.)\n\nIf, on the other hand, you want to write code in JavaScript, you can use the\nautogenerated binding code. A complete example appears in\n\n  `examples/hello_world.js`\n\nThat is HelloWorld.cpp from Bullet, translated to JavaScript. Other examples\nin that directory might be useful as well. In particular see the WebGL\ndemo code in\n\n  `examples/webgl_demo/ammo.html`\n\n\nBindings API\n============\n\nammo.js autogenerates its API from the Bullet source code, so it should\nbe basically identical. There are however some differences and things\nto be aware of:\n\n  * See https://github.com/kripken/emscripten/wiki/WebIDL-Binder\n    for a description of the bindings tool we use here, which includes\n    instructions for how to use the wrapped objects.\n\n  * All ammo.js elements should be accessed through `Ammo.*`. For example,\n    `Ammo.btVector3`, etc., as you can see in the example code.\n\n  * Member variables of structs and classes can be accessed through\n    setter and getter functions, that are prefixed with `|get_|` or `|set_|`.\n    For example,\n\n      `rayCallback.get_m_rayToWorld()`\n\n    will get `m_rayToWorld` from say a `ClosestRayResultCallback`. Native\n    JavaScript getters and setters could give a slightly nicer API here,\n    however their performance is potentially problematic.\n\n  * Functions returning or getting `float&` or `btScalar&` are converted to\n    float. The reason is that `float&` is basically `float*` with nicer syntax\n    in C++, but from JavaScript you would need to write to the heap every\n    time you call such a function, making usage very ugly. With this change,\n    you can do `|new btVector3(5, 6, 7)|` and it will work as expected. If\n    you find a case where you need the float& method, please file an issue.\n\n  * Not all classes are exposed, as only what is described in ammo.idl is\n    wrapped. Please submit pull requests with extra stuff that you need\n    and add.\n\n  * There is experimental support for binding operator functions. The following\n    might work:\n         \n    | Operator  | Name in JS  |\n    |---|---|\n    | `=`  | `op_set`  |\n    | `+`  | `op_add`  |\n    | `-`  | `op_sub`  |\n    | `*`  | `op_mul`  |\n    | `/`  | `op_div`  |\n    | `[]`  | `op_get`  |\n    | `==`  | `op_eq`  |\n\n\nTroubleshooting\n===============\n\n  * It's easy to forget to write |new| when creating an object, for\n    example\n\n      `var vec = Ammo.btVector3(1,2,3); // This is wrong! Need 'new'!`\n\n    This can lead to error messages like the following:\n\n      `Cannot read property 'a' of undefined`\n      `Cannot read property 'ptr' of undefined`\n\n    This is an annoying aspect of JavaScript, sadly.\n\n\nReporting Issues\n================\n\nIf you find a bug in ammo.js and file an issue, please include a script\nthat reproduces the problem. That way it is easier to debug, and we can\nthen include that script in our automatic tests.\n\n\nRelease Process\n===============\n\nPushing a new build in `builds/ammo.js` should be done only after the\nfollowing steps:\n\n  * Build a safe build and make sure it passes all automatic tests. Safe\n    builds contain a lot of runtime assertions that can catch potential\n    bugs (similar to the sort of things valgrind can catch).\n\n  * Build a fast build and make sure it passes all automatic tests.\n\n  * Run closure compiler on that fast build and make sure it passes\n    all automatic tests.\n\n  * Make sure that the stress test benchmark did not regress\n    compared to the old build.\n\n  * Run the WebGL demo in examples/webgl_demo and make sure it looks\n    ok.\n\n\nUpstream Version\n================\n\nBullet 2.82\n\n","maintainers":[{"name":"caseywebdev","email":"c@sey.me"}],"time":{"modified":"2022-06-13T02:45:03.142Z","created":"2015-09-30T03:21:09.548Z","0.0.2":"2015-09-30T03:21:09.548Z","0.0.3":"2015-10-01T20:03:20.207Z","0.0.4":"2015-10-02T01:57:06.174Z","0.0.5":"2015-10-03T22:41:50.125Z","0.0.6":"2015-10-04T20:40:45.224Z","0.0.7":"2015-10-07T14:05:56.187Z","0.0.8":"2015-10-08T18:25:29.054Z","0.0.9":"2016-01-22T20:25:08.031Z","0.0.10":"2016-04-17T17:23:41.085Z"},"homepage":"https://github.com/kripken/ammo.js","repository":{"type":"git","url":"git://github.com/kripken/ammo.js.git"},"contributors":[{"name":"The following authors have all licensed their contributions to ammo.js"},{"name":"under the licensing terms detailed in LICENSE."},{"name":"* Alon Zakai","email":"alonzakai@gmail.com","url":"copyright owned by Mozilla Foundation"}],"author":{"name":"Alon Zakai","email":"alonzakai@gmail.com"},"bugs":{"url":"https://github.com/kripken/ammo.js/issues"},"readmeFilename":"README.markdown","users":{"azertypow":true}}