-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.CheckCollisionSpheres
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Check collision between two spheres
| Parameter | Default Value | Note |
|---|---|---|
| center1 | ||
| radius1 | ||
| center2 | ||
| radius2 |
| Condition | Return Value |
|---|---|
| (always) | number |
c1 = [0, 0, 0]
c2 = [1.5, 0, 0]
hit = raylib.CheckCollisionSpheres(c1, 1.0, c2, 1.0)
if hit then print "Spheres overlap!" else print "No collision."