Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
[SOLVED]Overlay's rotation center
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: [SOLVED]Overlay's rotation center (Read 3628 times)
yindroid
byte
Posts: 21
[SOLVED]Overlay's rotation center
«
on:
November 08, 2011, 12:58:27 pm »
Hi, everyone!
I wonder if there is any way to change overlay's rotation center?
Thanks
«
Last Edit: November 16, 2011, 02:06:48 pm by yindroid
»
Logged
EgonOlsen
Administrator
quad
Posts: 12298
Re: Overlay's rotation center
«
Reply #1 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.
Logged
EgonOlsen
Administrator
quad
Posts: 12298
Re: Overlay's rotation center
«
Reply #2 on:
November 09, 2011, 09:28:40 pm »
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.
Logged
yindroid
byte
Posts: 21
Re: Overlay's rotation center
«
Reply #3 on:
November 15, 2011, 11:58:31 am »
Hi, Egon! Sorry for the long delay. New function works pretty well, thanks!
«
Last Edit: November 16, 2011, 02:07:11 pm by yindroid
»
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
[SOLVED]Overlay's rotation center