Currently, I have an objects anchor point set to top left. So if I set object.X = 500, it moves the top left corner 500px in from the edge of the stage.
Now, if I rotate the object 45 degrees for example, the top left corner is still 500px in from the edge, but the bottom right corner is now less than 500 in from the edge.
I want to be able to rotate an image, and amount of degrees, but always keep every point of the object exactly 500px in from the edge.
In my head, I imagine that I need to somehow ignore the anchor point, or something along those lines, but cannot figure out the best way to achieve this.
Can anybody offer any suggestions or insight?