Skip to content

Api > Physics > BoxCastAll()


Physics.BoxCastAll(PhysicBox physicBox)⚓︎

Like Physics.BoxCast, but returns all hits.

Parameters:⚓︎

Name Type Description
physicBox PhysicBox The Physic Box to cast.

Returns:⚓︎

type Description
RaycastHit[] All colliders that were hit.

Usage⚓︎

---@type PhysicBox
local physicBox;


local val0 = Physics:BoxCastAll(physicBox)