Skip to main content

Physics.SphereCastAll(PhysicSphere physicSphere)

Like Physics.SphereCast, but this function will return all hits the sphere sweep intersects.

Parameters:

NameTypeDescription
physicSpherePhysicSphereThe PhysicSphere to cast

Returns:

typeDescription
RaycastHit[]An array of all colliders hit in the sweep.

Usage

---@type PhysicSphere
local physicSphere;


local val0 = Physics:SphereCastAll(physicSphere)