Camera2DTrait
constCamera2DTrait:LocalTrait<Trait<{aimHeight:number;bounds: () =>PlaneBounds|null|undefined;dampingSeconds:number;deadZoneCentre: () =>Vector2;deadZoneHeight:number;deadZoneWidth:number;edge: () =>object;fit:Camera2DFit;focus: () =>Vector2;focusHeight:number;follow: () =>ViewTarget|null;followed: () =>Entity|null;followedTeleports:number;followHeight:boolean;fov:number;heldOff:boolean;highGroundDampingSeconds:number;highGroundHeight:number;highGroundPitch:number;isOnHighGround:boolean;lastTarget: () =>Vector2;layout: () =>Camera2DLayout|null;livePitch:number;liveYawRadians:number;liveZoom:number;lookAhead: () =>Vector2;lookAheadDampingSeconds:number;lookAheadSeconds:number;maxZoom:number;minZoom:number;offsetRight:number;offsetUp:number;pitch:number;pixelPerfect:boolean;pixelsPerMetre:number;placed: () =>Vector2;placedHeight:number;plane:Plane2D;projection:CameraProjection;referenceHeight:number;referenceWidth:number;restYawRadians:number;settled:boolean;shakeTexels:number;standHeight:number;targetZoom:number;turnRate:number;view: () =>object;yawLimitRadians:number;zoom:number; }>>
A Camera2D on its own entity: its settings, its layout on the canvas,
and the aim’s state, which never reads the lens back. On the camera’s
useCamera entity, which Camera2D gives it, so onCameraUpdate
reaches it as context.camera.