OverlapCapsule
7/14/25Less than 1 minute
Physics.OverlapCapsule(PhysicCapsule physicCapsule)
Check the given capsule against the physics world and return all overlapping colliders.
Parameters:
| Name | Type | Description | 
|---|---|---|
| physicCapsule | PhysicCapsule | The physic capsule. The directionfield of the PhysicCapsule will be ignored, so can be a nil. | 
Returns:
| type | Description | 
|---|---|
| Collider[] | Colliders touching or inside the capsule. | 
Usage
---@type PhysicCapsule
local physicCapsule;
local val0 = Physics:OverlapCapsule(physicCapsule)
