-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.CheckCollisionPointRec
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Check if point is inside rectangle
| Parameter | Default Value | Note |
|---|---|---|
| point | ||
| rec |
| Condition | Return Value |
|---|---|
| (always) | number |
box = {x:100, y:100, width:200, height:150}
mousePos = raylib.GetMousePosition
if raylib.CheckCollisionPointRec(mousePos, box) then print "Mouse is over the box!"