Author Topic: [SOLVED]Overlay's rotation center  (Read 3051 times)

Offline yindroid

  • byte
  • *
  • Posts: 21
    • View Profile
[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 »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
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.

Offline yindroid

  • byte
  • *
  • Posts: 21
    • View Profile
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 »