jPCT-AE - a 3d engine for Android > Support
[SOLVED]Overlay's rotation center
(1/1)
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:
Hi, Egon! Sorry for the long delay. New function works pretty well, thanks!
Navigation
[0] Message Index
Go to full version