Ray(Vector3 origin, Vector3 direction)
Parameters:
Name | Type | Description |
---|---|---|
origin | Vector3 | origin |
direction | Vector3 | direction |
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);