b2dIsBoxesColliding

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.

2D Overlay

Parameters & Returns

Parameters

box1Left Int
box1Right Int
box1Top Int
box1Bottom Int
box2Left Int
box2Right Int
box2Top Int
box2Bottom Int

Returns

Int

Quick 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.

Technical Exegesis...

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.

Example

Example.bam
; No example implemented yet