Physics.RaycastAll(PhysicRay physicRay)
Casts a ray through the Scene and returns all hits. Note that order of the results is undefined.
Parameters:
Name | Type | Description |
---|---|---|
physicRay | PhysicRay | The physic ray to cast. |
Returns:
type | Description |
---|---|
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)