Author Topic: Rotate a Widget by Touch (Steering Wheel)  (Read 3156 times)

robin1508

  • Guest
Rotate a Widget by Touch (Steering Wheel)
« on: November 30, 2012, 08:48:40 AM »
Hi Guys,

im wondering how I can rotate a Widget with a touch input on a iOS Device.
Has anybody faced this issue already?

Im writing something like this from scratch right now, my fist idea is to get the position of my Input.Touch and calculate the angle between the touch and my Widget.
If the touch position than moves, it calculates the delta angle between the starting position and the current touch position to rotate the Widget.

Is there any piece of code that exists already?

Thanks!

Rob