Skip to content

format

typescript
Ray.origin

class: Ray

description

(Read Only) The starting point of the ray.

parameter

param_nametypedescription

reture

typedescription
Vector3The starting point.

code example

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