www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: yindroid on November 08, 2011, 12:58:27 pm

Title: [SOLVED]Overlay's rotation center
Post by: yindroid on November 08, 2011, 12:58:27 pm
Hi, everyone!
I wonder if there is any way to change overlay's rotation center?
Thanks
Title: Re: Overlay's rotation center
Post by: EgonOlsen on November 08, 2011, 10:38:20 pm
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.
Title: Re: Overlay's rotation center
Post by: EgonOlsen on November 09, 2011, 09:28:40 pm
You might want to try this jar: http://jpct.de/download/beta/jpct-ae.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.
Title: Re: Overlay's rotation center
Post by: yindroid on November 15, 2011, 11:58:31 am
Hi, Egon! Sorry for the long delay. New function works pretty well, thanks!