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

CameraPose

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

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

aspectRatio: number

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

Width over height.


forward: Vector3

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

Where it looks, as a unit vector.


fov: number

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

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:2386

The eye position, in world-space metres.


right: Vector3

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

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:2401

Its own up, as a unit vector.