[SOLVED]Overlay's rotation center

Started by yindroid, November 08, 2011, 12:58:27 PM

Previous topic - Next topic

yindroid

Hi, everyone!
I wonder if there is any way to change overlay's rotation center?
Thanks

EgonOlsen

Currently not. It's calculated based on the dimensions of the overlay. It might be possible to override this with some custom value. I'll have a look at it when i find the time.

EgonOlsen

You might want to try this jar: http://jpct.de/download/beta/jpct-ae.jar. It adds a setRotationPivot(int x, int y) to Overlay that take the coordinates of the new rotation pivot in screen coordinates. Disclaimer: I've tested this with the desktop version, not on Android. So please give it a try and let me know if it works.

yindroid

#3
Hi, Egon! Sorry for the long delay. New function works pretty well, thanks!