Skip to content

CameraTrait

const CameraTrait: Trait<{ eyeHeightFraction: number; follow: () => Player | null; fov: number; holdSeconds: number; latch: boolean; latchedHeading: number; latchedSteer: () => Vector2; latchTurn: number; maxDistance: number; maxPolarAngle: number; metresPerSecond: number; minDistance: number; minPolarAngle: number; orbit: () => CameraControls | null; rotateSpeed: number; settle: boolean; settledDistance: () => number | null; turnRate: number; }>

Defined in: packages/engine/src/gameplay/camera/camera.ts:58

The mounted orbit and what the eye settle left behind, on an entity of its own the way Ground and Obstacles hold theirs. Camera spawns it and destroys it, so the loop, the save and her steering read the camera out of the world rather than being handed it, and a world that never mounted one simply has no match.