Skip to main content

Physics.OverlapBox(PhysicBox physicBox)

Find all colliders touching or inside of the given physic box.

Parameters:

NameTypeDescription
physicBoxPhysicBoxThe physic box. The direction field of the PhysicBox will be ignored, so can be a nil.

Returns:

typeDescription
Collider[]Colliders that overlap with the given box.

Usage

---@type PhysicBox
local physicBox;


local val0 = Physics:OverlapBox(physicBox)

Extra Detail

Creates an invisible box you define that tests collisions by outputting any colliders that come into contact with the box.