Skip to main content

Ray(Vector3 origin, Vector3 direction)

Parameters:

NameTypeDescription
originVector3origin
directionVector3direction

Usage

---@type Vector3
local origin;

---@type Vector3
local direction;


local ray = Ray(origin, direction);

Example

Create a Ray in Up direction.

local ray = Ray(Vector3.zero, Vector3.up);