Skip to content

ViewCamera beta ​

Interface of @v12-engine/client/lite-views

ts
export interface ViewCamera

A camera as any pass draws with it and as the maths here reads it

Members ​

far ​

ts
far: number;

How far the farthest it draws is, in cells

fov ​

ts
fov: number;

The lens: the angle the view takes in from top to bottom, in radians

near ​

ts
near: number;

How near the nearest it draws is, in cells

ortho ​

ts
ortho?: {
        halfHeight: number;
    };

Drawn without perspective, the view halfHeight cells from its middle to its top (and as wide as its shape makes it): the editor's top view. Perspective when left out

position ​

ts
position: [number, number, number];

Where it stands. The renderer's camera may be given this very array (RtsCamera.drive)

roll ​

ts
roll: number;

The horizon tilted, in radians about the way it looks: positive is clockwise as the player sees it. 0 is level

target ​

ts
target: [number, number, number];

The point it looks at