I would like to ask if there is a way to check when two shapes overlap..
For example let's say that we have two rectangles as shown in the attached image..
In "Case 1" the green rectangle has 4 check points (red dots) in the 4 corners so when it enters the big black rectangle it is easy to verify the overlap.
In "Case 2" the green rectangle is bigger now.. so the the black rectangle passes though the check points and the overlap cannot be verified..
Is there any way to solve this problem?
Thanks!
For example let's say that we have two rectangles as shown in the attached image..
In "Case 1" the green rectangle has 4 check points (red dots) in the 4 corners so when it enters the big black rectangle it is easy to verify the overlap.
In "Case 2" the green rectangle is bigger now.. so the the black rectangle passes though the check points and the overlap cannot be verified..
Is there any way to solve this problem?
Thanks!
1