This, I am sure, has a very simple answer.
I have 5 dials (circles) on a screen that I want the user to be able to turn by twisting them, the dial only needs to rotate in place and not to freely rotate (i.e. its not like the gears sample) and no momentum.
I have a touch function which stores the starting point in the began phase and then uses the new x and y in the moved phase to try and work out if the rotate is anti clockwise or clock wise.
I have been trying various bits of code and it obviously gets quite busy as you have to check if the user is touching above/below and left/right of the centre of the dial in conjunction with the new/old x and new/oldy of the actual touch to work out the correct direction.
Whilst I have not got it working yet (close but not fully), the code looks horrible and clunky which to me usually means there is a better way. Any thoughts?
[import]uid: 18643 topic_id: 11598 reply_id: 311598[/import]