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

CameraRay

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

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

direction: Vector3

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

Where it points, as a unit vector.


origin: Vector3

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

Where it starts: the eye position.


target: Vector3

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

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