Skip to content

CameraState beta ​

Interface of @v12-engine/render

ts
export interface CameraState

A view's camera, written in place by the game and read each frame

Members ​

far ​

ts
far: number;

How far it sees, in cells: depth 1

fov ​

ts
fov: number;

Vertical, in radians

near ​

ts
near: number;

How near it sees, in cells: depth 0

ortho ​

ts
ortho?: {
        halfHeight: number;
    };

Drawn without perspective, halfHeight cells from the view's middle to its top (an editor's top view)

position ​

ts
position: Vec3;

Where it is

roll ​

ts
roll?: number;

The horizon tilted, in radians about the way it looks (a cinematic's shot): level where left out

target ​

ts
target: Vec3;

The point it looks at