character-camera
Installation
SKILL.md
Character camera
Target: Three.js 0.187.0 WebGPU. scripts/character-camera.js exports
createCameraManager, createFirstPersonCamera and createThirdPersonCamera. They
depend only on three/webgpu and on an input object that provides
consumeMouseDelta() (see character-input).
Model
A camera manager owns the PerspectiveCamera and one active controller function
(camera, dt) => void. The two controllers are factories that keep their own state
(yaw and pitch) and return a bound controller when given the input and a target getter.
Switching views is manager.setController(...); nothing else changes.