Skip to content

Api > Physics > CheckCapsule()


Physics.CheckCapsule(PhysicCapsule physicCapsule)⚓︎

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

Parameters:⚓︎

Name Type Description
physicCapsule PhysicCapsule The physic capsule. The direction field of the PhysicCapsule will be ignored, so can be a nil.

Returns:⚓︎

type Description
boolean true if any colliders overlap a capsule-shaped volume in world space.

Usage⚓︎

---@type PhysicCapsule
local physicCapsule;


local val0 = Physics:CheckCapsule(physicCapsule)