Physics.CapsuleCastAll(PhysicCapsule physicCapsule)
Like Physics.CapsuleCast, but this function will return all hits the capsule sweep intersects.
Parameters:
Name | Type | Description |
---|---|---|
physicCapsule | PhysicCapsule | The physic capsule to cast. |
Returns:
type | Description |
---|---|
RaycastHit[] | An array of all colliders hit in the sweep. |
Usage
---@type PhysicCapsule
local physicCapsule;
local val0 = Physics:CapsuleCastAll(physicCapsule)