threejs-interaction
它能做什么
这个工具可以帮你在网页浏览器中创建交互式 3D 体验。它让用户可以点击物体、控制摄像机,并与 3D 环境互动。
适用场景
- ✓当你希望用户能点击 3D 场景中的物体时。
- ✓当你想添加移动或旋转摄像机的控件时。
- ✓当你要制作用户可以参与互动的游戏或可视化作品时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/threejs-interaction/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“创建一个 3D 场景,让我点击球体后可以改变它的颜色。”
每周 5 个新技能,1 分钟读完。
工作原理
它的原理是检测用户在屏幕上点击的位置,并把它转换为 3D 场景中的操作。这样就能实现选中物体或改变观察视角。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Three.js Interaction
Detailed Guide
Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
When to Use
- You need user interaction inside a Three.js scene.
- The task involves raycasting, object picking, pointer handling, touch input, or camera controls.
- You are building an interactive 3D experience rather than a passive render.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题
什么是“射线投射”(raycasting)?
可以把它想象成一条从你的屏幕点击位置射出的隐形射线,用来判断它击中了哪个 3D 物体。
什么是“摄像机控制”?
这是用户移动摄像机的方式,比如旋转、缩放或平移视角。
我能在任何网站上使用吗?
一般来说可以,只要该网站使用 Three.js 技术来创建 3D 图形即可。
详情
作者的原始描述
Three.js interaction - raycasting, controls, mouse/touch input, object selection. Use when handling user input, implementing click detection, adding camera controls, or creating interactive 3D experiences.
热度
- GitHub 星标
- 48k
- 排名
- #5987
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。