playMaker

Author Topic: Rotating a wheel with touch  (Read 1276 times)

spiralKing

  • Junior Playmaker
  • **
  • Posts: 50
    • View Profile
Rotating a wheel with touch
« on: February 05, 2014, 03:46:57 PM »
I have a wheel that I'm trying to rotate with touch, but not just flicking or swiping it, it has to have a circular motion

e.g.


In addition to rotating, I need help figuring out how to get the wheel to pop to specific positions

e.g.

Imagine a 12 hour clock; I'm rotating a wheel with points that align with the numbers (12, 3, 6, 9) on the clock

Say if my finger rotates one of those points on the wheel from 12 to 3, maybe I don't actually reach 3 but if the point is closer to 3 than 12, I want it to pop to 3 or pop back to 12 if it's closer to 12

That way whenever I rotate the wheel it always pops to one of those numbers (12, 3, 6, 9) after I let go, depending on which number the point on the wheel (the point the finger is touching) is closest to

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14387
  • Official Playmaker Support
    • View Profile
Re: Rotating a wheel with touch
« Reply #1 on: February 06, 2014, 12:52:36 AM »