-
Notifications
You must be signed in to change notification settings - Fork 2
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
| Parameter | Default Value | Note |
|---|---|---|
| box1 | ||
| box2 |
| Condition | Return Value |
|---|---|
| (always) | number |
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."