Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Data shapeClient APIGenerated

CameraPose

Defined in: client/api.d.ts:2140

Where this client is drawing from, as the renderer settled on it this frame.

aspectRatio: number

Defined in: client/api.d.ts:2169

Width over height.


forward: Vector3

Defined in: client/api.d.ts:2149

Where it looks, as a unit vector.


fov: number

Defined in: client/api.d.ts:2164

Vertical field of view in degrees. What the renderer settled on, which Hor+ adaptation and the window’s aspect both move – not what the game asked for.


position: Vector3

Defined in: client/api.d.ts:2144

The eye position, in world-space metres.


right: Vector3

Defined in: client/api.d.ts:2154

Its own right, as a unit vector. Read off the camera rather than rebuilt from a yaw, so it carries roll.


up: Vector3

Defined in: client/api.d.ts:2159

Its own up, as a unit vector.