Hello,
I have an rect and I want rotate it around a point. The rect is for example 1000x1000 pixel, now I want to rotate it around point 800, 350, how to set the anchor point?
Hello,
I have an rect and I want rotate it around a point. The rect is for example 1000x1000 pixel, now I want to rotate it around point 800, 350, how to set the anchor point?
That is a math thing, not a anchor thing.
You can use code from SSK2 to do this:
https://roaminggamer.github.io/RGDocs/pages/SSK2/libraries/misc/#rotateabout
That is right. You could use extended anchors and simple rotation too. Nice catch @ldurniat!
The only trick will be converting from anchor space to pixel space, but that isn’t too bad.
Thanks a lot, that helps much.
That is a math thing, not a anchor thing.
You can use code from SSK2 to do this:
https://roaminggamer.github.io/RGDocs/pages/SSK2/libraries/misc/#rotateabout
That is right. You could use extended anchors and simple rotation too. Nice catch @ldurniat!
The only trick will be converting from anchor space to pixel space, but that isn’t too bad.
Thanks a lot, that helps much.