跳到正文
Skillpedia
网站与界面(前端)7.2k · #13353

build-game-camera-controls

它能做什么

这个技能指导智能体为 3D 游戏构建一个能让玩家和威胁都容易看清的镜头。适合为动作游戏制作等距或跟随镜头的开发者。

适用场景

  • ✓游戏镜头需要平滑地跟随玩家的时候。
  • ✓墙体或道具遮挡了玩家,镜头需要处理这种情况的时候。
  • ✓需要锁定目标、镜头抖动或触屏镜头手势的时候。

技能链接

https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/build-game-camera-controls/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/build-game-camera-controls/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请让我动作游戏中的镜头平滑地跟随玩家,并在敌人攻击时让它们保持在视野内。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会分别平滑镜头的位置和注视目标,设置缩放和角度限制,并在基础镜头之上添加临时效果。它会检查拐角、高大的道具和触屏控制。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Build Game Camera Controls

Keep gameplay readable before making the camera cinematic. Define one authoritative target, camera bounds, zoom range, collision/occlusion policy, and reduced-motion behavior.

Implement

  • Smooth position and look-at targets independently; never bind the camera directly to jittery render state.
  • Preserve player, immediate threat, objective, and interaction cues in frame at the intended distance.
  • Clamp orbit, pitch, and zoom; prevent walls or props from hiding the player without making geometry invisible globally.
  • Treat lock-on, scripted moments, and shake as temporary modifiers layered over the base camera.
  • On touch, separate camera gesture zones from movement/action controls and provide reset framing.

Verify

Test corners, tall props, tunnels, multiple enemies, lock-on switching, pause, reduced motion, portrait, and landscape. Confirm no camera behavior breaks targeting, UI, or performance.

常见问题

镜头会直接锁定在玩家身上吗?

不会。技能会平滑镜头目标,使其不会因渲染状态而抖动。

它如何处理墙体?

它会防止墙体或道具遮挡玩家,同时又不会让几何体在所有地方都隐形。

它支持手机吗?

支持。它会在触屏上将镜头手势区域与移动和动作控制区分开来。

详情

作者的原始描述

Implement or tune Three.js game cameras. Use for isometric framing, follow behavior, orbit/zoom limits, occlusion, lock-on, camera shake, touch camera controls, and camera regression tests.

repo: MengTo/Skills

热度

GitHub 星标
7.2k
排名
#13353
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能