format
typescript
Ray.directionclass: Ray
description
(Read Only) The direction of the ray.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Vector3 | The 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;