Look at these three pictures:
[attachment=12966:example1.png]
[attachment=12967:example2.png]
[attachment=12968:example3.png]
So the red object is some sort of watcher. It watches the green object. However, I do not want the coordinates of the green object, but the black circle. Is there any way to calculate this?
Some more info about my game, the top left corner is point 0,0, x increases while moving to the right and y is increasing when moving down, just like any other java coordinate system. The black circle is always going to be at the edge of the map.