Skip to main content

Physics.CheckCapsule(PhysicCapsule physicCapsule)

Checks if any colliders overlap a capsule-shaped volume in world space.

Parameters:

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

Returns:

typeDescription
booleantrue if any colliders overlap a capsule-shaped volume in world space.

Usage

---@type PhysicCapsule
local physicCapsule;


local val0 = Physics:CheckCapsule(physicCapsule)