Skip to main content

Physics.RaycastAll(PhysicRay physicRay)

Casts a ray through the Scene and returns all hits. Note that order of the results is undefined.

Parameters:

NameTypeDescription
physicRayPhysicRayThe physic ray to cast.

Returns:

typeDescription
RaycastHit[]An array of RaycastHit objects. Note that the order of the results is undefined.

Usage

---@type PhysicRay
local physicRay;


local val0 = Physics:RaycastAll(physicRay)