Ray

constructor()

Create a ray with an origin of (0,0,0) and a direction of Vector3.forward().


constructor(origin: Vector3, direction: Vector3)

Create a ray with a specified origin and direction. The direction will automatically be normalized.

Parameters

origin

the ray's origin

direction

the ray's direction