Skip to main content

Physics.CheckSphere(PhysicSphere physicSphere)

Returns true if there are any colliders overlapping the sphere defined by PhysicSphere.

Parameters:

NameTypeDescription
physicSpherePhysicSphereThe physic sphere. The direction field of the PhysicSphere will be ignored, so can be a nil.

Returns:

typeDescription
booleantrue if there are any colliders overlapping the sphere

Usage

---@type PhysicSphere
local physicSphere;


local val0 = Physics:CheckSphere(physicSphere)