Skip to main content

PhysicRay(Vector3 origin, Vector3 direction)

Create new PhysicRay by origin and direction

Parameters:

NameTypeDescription
originVector3The starting point of the ray in world coordinates.
directionVector3The direction of the ray.

Usage

---@type Vector3
local origin;

---@type Vector3
local direction;


local physicray = PhysicRay(origin, direction);