I’m in a situation where I want to rotate a dispay object, but the center of rotation is changing.
From my earlier experience with these kind of things rotation around a certain point is done with a translation/rotatio/translation (back) operation, but as far as I know the only way to change the center of the rotation is to change the anchor point of the object.
But changing the anchor point will also change the positioning of the object on screen.
Do I have to calculate the repositioning of the object on screen and actually modify the .x and .y of the object to adjust for the repositioned anchor points? Or is there a more elegant/obvious way of doing this?