b2dIsBoxesColliding

Category: 2D Overlay

Syntax:

b2dIsBoxesColliding:Int(box1Left:Int, box1Right:Int, box1Top:Int, box1Bottom:Int, box2Left:Int, box2Right:Int, box2Top:Int, box2Bottom:Int)


Parameters

Returns

Int



Summary

Tests axis-aligned bounding box (AABB) collision (fastest collision test, no rotation, edge/corner inclusive).

Takes box1Left,box1Right,box1Top,box1Bottom (first rectangle bounds, integers), box2Left,box2Right,box2Top,box2Bottom (second rectangle bounds, integers).

Returns 1 if boxes overlap or touch, 0 if separated.

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn