{"_id":"sync-ammo","_rev":"2-9d077139851be3efe26d734558a434d6","name":"sync-ammo","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"sync-ammo","version":"0.1.0","description":"同步版本 Ammo.js","main":"ammo.js","scripts":{"build":"rollup -c"},"type":"module","author":{"name":"carl-lance"},"license":"ISC","devDependencies":{"rollup":"^4.14.1","@rollup/plugin-commonjs":"^25.0.1","@rollup/plugin-node-resolve":"^15.1.0","@rollup/plugin-terser":"^0.4.3","rollup-plugin-copy":"^3.5.0"},"repository":{"type":"git","url":"git+https://github.com/carl-lance/sync-ammo.git"},"homepage":"https://github.com/carl-lance/sync-ammo","bugs":{"url":"https://github.com/carl-lance/sync-ammo/issues"},"publishConfig":{"registry":"https://registry.npmjs.org/","provenance":true},"gitHead":"23a2fb89ea2f830363aec68ad54aa24924d37411","_id":"sync-ammo@0.1.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+bmcLtmUdxJTn0BkHD/7ynGUqoN09mA9ouwDMKasZ5CXMrYJZSnkuM3Ut8S+LbaIXTS5MPpLq9hauXhLlYWdkQ==","shasum":"ffc099544991bf1e76c0008757f3f6d4010dfb99","tarball":"https://registry.npmjs.org/sync-ammo/-/sync-ammo-0.1.0.tgz","fileCount":6,"unpackedSize":3856477,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH6VUqYl3mSDQz/QJl++7uDCjcoVqYcvfB8jBklPrAquAiAO+6iPZza/p2+MSBM1Qh8TUKhSnKxFBG7rBTjtfqhYDg=="}]},"_npmUser":{"name":"carl-lance","email":"2462283779@qq.com"},"directories":{},"maintainers":[{"name":"carl-lance","email":"2462283779@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sync-ammo_0.1.0_1712507369836_0.6766433830913592"},"_hasShrinkwrap":false},"0.1.1":{"name":"sync-ammo","version":"0.1.1","description":"同步版本 Ammo.js","main":"./dist/ammo.js","module":"./dist/ammo.module.js","scripts":{"build":"rollup -c"},"type":"module","author":{"name":"carl-lance"},"license":"ISC","devDependencies":{"rollup":"^4.14.1","@rollup/plugin-commonjs":"^25.0.1","@rollup/plugin-node-resolve":"^15.1.0","@rollup/plugin-terser":"^0.4.3","rollup-plugin-copy":"^3.5.0"},"repository":{"type":"git","url":"git+https://github.com/carl-lance/sync-ammo.git"},"homepage":"https://github.com/carl-lance/sync-ammo","bugs":{"url":"https://github.com/carl-lance/sync-ammo/issues"},"publishConfig":{"registry":"https://registry.npmjs.org/","provenance":true},"types":"./dist/ammo.d.ts","gitHead":"cf63397dd1858ce33c89178cda08719262f45241","_id":"sync-ammo@0.1.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Rh4sim1MY5n3ZJ4GudilyXli+nSLzqcH+/sK7LOdsT4xYd66SGqtky6hVtk2TcxBZkw58r+R3FbD/SsuXNUq3g==","shasum":"f6c2730628eb5cf2ea6f2fcadb7c1591bd2c577a","tarball":"https://registry.npmjs.org/sync-ammo/-/sync-ammo-0.1.1.tgz","fileCount":5,"unpackedSize":3855863,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICBHWGARFPDmU8lAe1ndFJhKUz7VGpbahZ6hDRDLcJBlAiAco/ezlycUEyKt/ltoDDZBDp3ctWGVaSrLhl0yNC9iZQ=="}]},"_npmUser":{"name":"carl-lance","email":"2462283779@qq.com"},"directories":{},"maintainers":[{"name":"carl-lance","email":"2462283779@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sync-ammo_0.1.1_1712509481653_0.7508548967587683"},"_hasShrinkwrap":false},"0.1.2":{"name":"sync-ammo","version":"0.1.2","description":"Synchronized version Ammo physical library","main":"./dist/ammo.js","module":"./dist/ammo.module.js","scripts":{"build":"rollup -c"},"type":"module","author":{"name":"carl-lance"},"license":"ISC","devDependencies":{"rollup":"^4.14.1","@rollup/plugin-commonjs":"^25.0.1","@rollup/plugin-node-resolve":"^15.1.0","@rollup/plugin-terser":"^0.4.3","rollup-plugin-copy":"^3.5.0"},"repository":{"type":"git","url":"git+https://github.com/carl-lance/sync-ammo.git"},"homepage":"https://github.com/carl-lance/sync-ammo","bugs":{"url":"https://github.com/carl-lance/sync-ammo/issues"},"publishConfig":{"registry":"https://registry.npmjs.org/","provenance":true},"keywords":["ammo.js","physics","bullet","three.js","3d"],"types":"./dist/ammo.d.ts","gitHead":"15a432eb98f5ff31dfa9716e1c7f95c1c34f139f","_id":"sync-ammo@0.1.2","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Itf3EYf9ab8/cSVcT3ntE+do4Y57fN2fjsNXNj2RgxW58WjkXeBzL26HkPEJsFc6ly759JXU6ewVupiIH51clg==","shasum":"e57e376edb47ec822c27d5a6c86c97abe192893c","tarball":"https://registry.npmjs.org/sync-ammo/-/sync-ammo-0.1.2.tgz","fileCount":5,"unpackedSize":3857286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHSuRa0KP+AyXZLlQjrEAp3JnyB3k0GAs5+wDEen/gizAiEAiQ9VaSF6Th3cJgo89B99GUdbCpJBbYwCuNM96XIFyWQ="}]},"_npmUser":{"name":"carl-lance","email":"2462283779@qq.com"},"directories":{},"maintainers":[{"name":"carl-lance","email":"2462283779@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sync-ammo_0.1.2_1713429755271_0.22504085900586301"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-07T16:29:29.835Z","0.1.0":"2024-04-07T16:29:30.134Z","modified":"2024-04-18T08:42:35.739Z","0.1.1":"2024-04-07T17:04:41.859Z","0.1.2":"2024-04-18T08:42:35.541Z"},"maintainers":[{"name":"carl-lance","email":"2462283779@qq.com"}],"description":"Synchronized version Ammo physical library","homepage":"https://github.com/carl-lance/sync-ammo","repository":{"type":"git","url":"git+https://github.com/carl-lance/sync-ammo.git"},"author":{"name":"carl-lance"},"bugs":{"url":"https://github.com/carl-lance/sync-ammo/issues"},"license":"ISC","readme":"# sync-ammo\n\n* Synchronize version ammo.js and ESM version ammo.js\n* 同步执行的 ammo.js 物理库, 支持 UMD 引入和 ESM 导入\n\n\n* Modified based on [ammo.js](https://github.com/kripken/ammo.js)\n* 基于[ammo.js](https://github.com/kripken/ammo.js) 修改\n\n## UMD 引入\n\n```javascript\n<script src=\"dist/ammo.js\"></script>\n<script>\n    // 其他变量和这里一致\n    const vec3 = new Ammo.btVector3();\n    \n</script>\n\n```\n\n## ESM 导入\n\n```javascript\nimport Ammo from 'dist/ammo.module.js';\n\n// 其他变量和这里一致\nconst vec3 = new Ammo.btVector3();\n\n```\n\n## 使用示例\n\n```javascript\n// Sets the collision type of the physics engine - software and rigid body collision\nconst collisionConfiguration = new Ammo.btSoftBodyRigidBodyCollisionConfiguration();\n// dispatcher is referenced by the collision detection algorithm allocator\nconst dispatcher = new Ammo.btCollisionDispatcher( collisionConfiguration );\n      \n// The collision rough measurement method interface\nconst broadphase = new Ammo.btDbvtBroadphase();\n        \n// Configuration constraint Solver - (Sequence pulse constraint Solver)\n// Make objects interact correctly, taking into account gravity, forces, collisions, etc\nconst solver = new Ammo.btSequentialImpulseConstraintSolver();\n// Configuration Constraint Solver - (Software Constraint Solver)\nconst softBodySolver = new Ammo.btDefaultSoftBodySolver();\n\n// Create a software-enabled, rigid physical world\nphysicsWorld = new Ammo.btSoftRigidDynamicsWorld( dispatcher, broadphase, solver, collisionConfiguration, softBodySolver );\n\n// Set the gravity of the physical world\nphysicsWorld.setGravity( new Ammo.btVector3( 0, -9.8, 0 ) );\nphysicsWorld.getWorldInfo().set_m_gravity( new Ammo.btVector3( 0, -9.8, 0 ) );\n\n```\n","readmeFilename":"README.md","keywords":["ammo.js","physics","bullet","three.js","3d"]}