-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.CheckCollisionCircleLine
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Check if circle collides with a line created between two points [p1] and [p2]
| Parameter | Default Value | Note |
|---|---|---|
| center | ||
| radius | ||
| p1 | ||
| p2 |
| Condition | Return Value |
|---|---|
| (always) | number |
hit = raylib.CheckCollisionCircleLine([200, 150], 30, [100, 200], [300, 100])
if hit then print "Circle intersects the line!"