Skip to content

RayCast

Description

RayCast is a Function
Shoots a ray from the given start point in the given direction and returns information about what the ray hit.

Example
local testVariable = RayCast(Vector3.New(1, 1, 1), Vector3.New(1, 1, 1), 1.0)
Usage

network usage: Any (Client or Server/Host)
returns: HitData
parameters:
- start (Vector3)
- direction (Vector3)
- length (float)