{"_id":"@cjhd/cj-rvo","name":"@cjhd/cj-rvo","dist-tags":{"latest":"1.2.1"},"versions":{"1.2.1":{"name":"@cjhd/cj-rvo","version":"1.2.1","description":"RVO2 动态避障（浮点）","main":"./index.js","repository":{"type":"git","url":"https://gitee.com/cocos2d-zp/cococs-creator-frame-3d"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"author":{"name":"超M","email":"402879660@qq.com"},"license":"SEE LICENSE IN README.md","type":"module","browser":"./index.js","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","browser":"./index.js","import":"./index.js","default":"./index.js"},"./index.js":{"types":"./index.d.ts","browser":"./index.js","import":"./index.js","default":"./index.js"},"./assets/*":{"types":"./assets/*.d.ts","browser":"./assets/*.js","import":"./assets/*.js","default":"./assets/*.js"},"./package.json":"./package.json"},"dependencies":{},"gitHead":"9a82d58ae7c67b0d328681e18f5db7631ef53cc8","_id":"@cjhd/cj-rvo@1.2.1","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-dmZrWyvYQstvZNAR7W2plxdhUsU7XNc6z/QzJX7MoN4WMwmYeGvI6FI/FtBKmItjevJWmnKgtz7tg3iNgxFqAQ==","shasum":"7dc9ca68a9b5cc0496515854e872f60d800b4d27","tarball":"https://registry.npmjs.org/@cjhd/cj-rvo/-/cj-rvo-1.2.1.tgz","fileCount":19,"unpackedSize":37678,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDIUICyjTQpNdHc/28EnHmPNG2XxJXMn8FOM4RO226wzAiAmAsp+OfQJQun3DGA54Ga4PlBIH7lsLy5fChs/ho09pA=="}]},"_npmUser":{"name":"mycoolmc","email":"mycoolmc@gmail.com"},"directories":{},"maintainers":[{"name":"mycoolmc","email":"mycoolmc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cj-rvo_1.2.1_1779709439758_0.2141293542914977"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-25T11:43:59.634Z","1.2.1":"2026-05-25T11:43:59.944Z","modified":"2026-05-25T11:44:00.103Z"},"maintainers":[{"name":"mycoolmc","email":"mycoolmc@gmail.com"}],"description":"RVO2 动态避障（浮点）","repository":{"type":"git","url":"https://gitee.com/cocos2d-zp/cococs-creator-frame-3d"},"author":{"name":"超M","email":"402879660@qq.com"},"license":"SEE LICENSE IN README.md","readme":"# RVO2 动态避障\n\n## 前置条件\n\n无（本包为 **浮点** 实现，适用于单机/客户端表现层避障）。\n\n## 使用案例\n\n```TS\nimport { Simulator, Vector2, type IAgent } from 'db://assets/pkg-export/@cjhd/cj-rvo';\n\nconst sim = Simulator.inst;\nconst id = sim.addAgent({ x: 0, y: 0 }, {\n    radius: 0.5,\n    maxSpeed: 2,\n    neighborDist: 2,\n    maxNeighbors: 8,\n});\nsim.setAgentPrefVelocity(id, new Vector2(1, 0));\nsim.run(1 / 60);\n```\n\n## 与帧同步\n\n锁步/确定性仿真请使用 **`@cjhd/cj-decimal-rvo`**（定点版，工程与实现清单见 `assets/cj-decimal-rvo/.cj-decimal-rvo.md`）。  \n本包 `cj-rvo` 保持与原版 `@gamex/cc-rvo2` 一致的浮点语义，便于先接入玩法与编辑器调试。\n","readmeFilename":"README.md","_rev":"1-f889bd22ba953d6f9e7adffc0cc02f11"}