Skip to main content

Physics.OverlapCapsule(PhysicCapsule physicCapsule)

Check the given capsule against the physics world and return all overlapping colliders.

Parameters:

NameTypeDescription
physicCapsulePhysicCapsuleThe physic capsule. The direction field of the PhysicCapsule will be ignored, so can be a nil.

Returns:

typeDescription
Collider[]Colliders touching or inside the capsule.

Usage

---@type PhysicCapsule
local physicCapsule;


local val0 = Physics:OverlapCapsule(physicCapsule)