Rect.Overlap not working propely?
i'm just checking if two rectangles are overlapping and function returns false when it should not.
foreach( room roommain in listrooms){
foreach(room roomcheck in listrooms){
if(roommain != roomcheck)
if(roommain.Overlap(roomcheck)) // <- doesnt return true sometimes
// move around
}
}
untitled.jpg
(217.9 kB)
untitled2.jpg
(386.7 kB)
Comment