Skip to content

Api > Physics > CheckBox()


Physics.CheckBox(PhysicBox physicBox)⚓︎

Check whether the given box overlaps with other colliders or not.

Parameters:⚓︎

Name Type Description
physicBox PhysicBox The physic box. The direction field of the PhysicBox will be ignored, so can be a nil.

Returns:⚓︎

type Description
boolean True, if the box overlaps with any colliders.

Usage⚓︎

---@type PhysicBox
local physicBox;


local val0 = Physics:CheckBox(physicBox)