Get collision rectangle for two rectangles collision
// Find the overlapping area of two rectangles rec1 = {x:50, y:50, width:150, height:100} rec2 = {x:100, y:80, width:150, height:100} overlap = raylib.GetCollisionRec(rec1, rec2) print "Overlap: " + overlap.x + ", " + overlap.y + ", " + overlap.width + "x" + overlap.height
There was an error while loading. Please reload this page.