用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ming1zhou88/minemap-skills --skill minemap-collision-and-bounding命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | minemap-collision-and-bounding |
| description | MineMap 包围体与碰撞检测规范。用于 AABB/OBB/包围球相交判断、BVH 碰撞、角色碰撞与调试边界框。 |
这类能力分两层:
源码与导出表明,MineMap 已公开:
AxisAlignedBoundingBoxOrientedBoundingBoxBoundingSphereBoundingBoxIntersectionmap.setCollisionDetection(...)map.collisionDetectionnew minemap.AxisAlignedBoundingBox(...)new minemap.OrientedBoundingBox(...)new minemap.BoundingSphere(...)minemap.BoundingBoxIntersection.*map.setCollisionDetection(options)map.collisionDetection.showBvhBoundingBox对应 demo:
demo/html/BoundingBoxIntersectionDemo.htmldemo/html/AABBIntersectionDemo.htmldemo/html/OBBIntersectionDemo.htmldemo/html/BoundingSphereIntersectionDemo.html稳定调用:
BoundingBoxIntersection.intersects(...)BoundingBoxIntersection.aabbIntersectsAabb(...)BoundingBoxIntersection.obbIntersectsObb(...)BoundingBoxIntersection.sphereIntersectsSphere(...)这些 demo 都说明一个点:
不要把局部模型尺寸直接拿去做世界碰撞。
setCollisionDetection(...)对应 demo:
demo/html/BVHCollisionDetection.html关键参数:
sourcetargetsbvhBoundingBoxDepthshowBvhBoundingBoxdemo 还验证了:
collisionDistanceshowBvhBoundingBox 不是正式业务显示层。
targets: 'keep' 只在你明确理解复用碰撞体时使用否则容易让碰撞目标状态失真。
demo/html/BoundingBoxIntersectionDemo.htmldemo/html/AABBIntersectionDemo.htmldemo/html/OBBIntersectionDemo.htmldemo/html/BoundingSphereIntersectionDemo.htmldemo/html/BVHCollisionDetection.htmlminemap-math-foundationsminemap-transformsminemap-business-roaming-and-tracking基于 SOC 职业分类