Skip to content

raylib.CheckCollisionSpheres

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Check collision between two spheres

Parameters

Parameter Default Value Note
center1
radius1
center2
radius2

Return value

Condition Return Value
(always) number

Notes

Example

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."

Clone this wiki locally