-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.CheckCollisionBoxSphere
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Check collision between box and sphere
| Parameter | Default Value | Note |
|---|---|---|
| box | ||
| center | ||
| radius |
| Condition | Return Value |
|---|---|
| (always) | number |
box = {min:[-1,-1,-1], max:[1,1,1]}
center = [2, 0, 0]
radius = 0.8
hit = raylib.CheckCollisionBoxSphere(box, center, radius)
if hit then print "Box and sphere overlap!" else print "No collision."