Skip to content

format

typescript
Ray.direction

class: Ray

description

(Read Only) The direction of the ray.

parameter

param_nametypedescription

reture

typedescription
Vector3The direction of the ray.

code example

typescript
const ray = new Ray(new Vector3(0, 0, 0), new Vector3(0, 0, 1));
const direction = ray.direction;