Category: 2D Overlay
Syntax:
b2dIsCirclesColliding:Int(x1:Int, y1:Int, r1:Int, x2:Int, y2:Int, r2:Int)
Int
Tests circle-circle collision (distance^2 vs radiusSum^2, optimized avoids sqrt, fast AABB alternative).
Takes x1,y1 (first circle center, integers), r1 (first circle radius in pixels, integer), x2,y2 (second circle center, integers), r2 (second circle radius in pixels, integer).
Returns 1 if colliding (circles overlap or touch), returns 0 if not colliding (circles separated).
View detailed documentation online
;No example implemented yet
BambooBasic © 2026 Michael Denathorn