PhysicRay()
7/14/25Less than 1 minute
PhysicRay(Vector3 origin, Vector3 direction)
Create new PhysicRay by origin and direction
Parameters:
| Name | Type | Description |
|---|---|---|
| origin | Vector3 | The starting point of the ray in world coordinates. |
| direction | Vector3 | The direction of the ray. |
Usage
---@type Vector3
local origin;
---@type Vector3
local direction;
local physicray = PhysicRay(origin, direction);
