How to do that?, i have a random generator of boxes, this boxes are generated in random x y positions, also i have obstacles in specific positions, but the boxes when are generated, overlapping the obstacles:
The idea is to move the box generation some pixels far of obstacle, depending of your position.
*******EDIT*****
I found the option, in the object functions appears is overlapping to object. If i click this option and after set the new positions the problem is solved.