Skip to content

raylib.CheckCollisionBoxes

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Check collision between two boxes NOTE: Boxes are defined by two points minimum and maximum

Parameters

Parameter Default Value Note
box1
box2

Return value

Condition Return Value
(always) number

Notes

Example

box1 = {min:[-1,-1,-1], max:[1,1,1]}
box2 = {min:[0.5,-1,-1], max:[2.5,1,1]}
hit = raylib.CheckCollisionBoxes(box1, box2)
if hit then print "Boxes overlap!" else print "No collision."

Clone this wiki locally