Skip to content

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]

Parameters

Parameter Default Value Note
center
radius
p1
p2

Return value

Condition Return Value
(always) number

Notes

Example

hit = raylib.CheckCollisionCircleLine([200, 150], 30, [100, 200], [300, 100])
if hit then print "Circle intersects the line!"

Clone this wiki locally