界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

build-game-camera-controls

build-game-camera-controls

【开发与工程】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.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: build-game-camera-controls description: 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.

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.

我的收藏