format
typescript
Ray.GetRayDest(distance)class: Ray
description
Get the position point after extending the ray by a given distance.
parameter
| param_name | type | description |
|---|---|---|
| distance | number | The distance to extend. |
reture
| type | description |
|---|---|
Vector3 | The extended position. |
code example
typescript
const ray = new Ray(new Vector3(0, 0, 0), new Vector3(0, 0, 1));
const raydest = ray.GetRayDest(10);