Skip to main content

Physics.CapsuleCastAll(PhysicCapsule physicCapsule)

Like Physics.CapsuleCast, but this function will return all hits the capsule sweep intersects.

Parameters:

NameTypeDescription
physicCapsulePhysicCapsuleThe physic capsule to cast.

Returns:

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

Usage

---@type PhysicCapsule
local physicCapsule;


local val0 = Physics:CapsuleCastAll(physicCapsule)