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

CameraRay

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

A ray out of the camera, ready to hand to World.raycast.

direction: Vector3

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

Where it points, as a unit vector.


origin: Vector3

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

Where it starts: the eye position.


target: Vector3

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

Where it ends, which is origin plus direction times the range asked for.