Skip to content

Api > Physics > CheckSphere()


Physics.CheckSphere(PhysicSphere physicSphere)⚓︎

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

Parameters:⚓︎

Name Type Description
physicSphere PhysicSphere The physic sphere. The direction field of the PhysicSphere will be ignored, so can be a nil.

Returns:⚓︎

type Description
boolean true if there are any colliders overlapping the sphere

Usage⚓︎

---@type PhysicSphere
local physicSphere;


local val0 = Physics:CheckSphere(physicSphere)