quote:Originally posted by SiliconFuRy
Do you already have an algorithm to find out if the 2 objects overlap?
I was thinking of using only one cordinate of both Rectangle. like the given bottomLeft X AND Y of the both rectangle. and set it to a range according the height and width given.Since in math, there must be a fix distance between two bottom left corner in order for triangle to overlap no matter the position of the rectangle. but the thing is i did all the math but the only thing is i can't do it in java due to the syntax and everything else.