Skip to content

CameraPose beta ​

Interface of @v12-engine/client

ts
export interface CameraPose

Where the camera is, the way the RTS camera thinks of it: the point it looks at, how far back, which way and how steeply

Members ​

distance ​

ts
distance: number;

How far back the camera is from what it looks at, in cells

pitch ​

ts
pitch: number;

Between the view direction and the ground, in radians

x ​

ts
x: number;

Where on the map the camera looks at, along the x axis

yaw ​

ts
yaw: number;

Rotation around the vertical axis, in radians. 0 looks north

z ​

ts
z: number;

Where on the map the camera looks at, along the z axis