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


  • Junior Playmaker
  • **
  • Posts: 50
    • View Profile
Rotating a wheel with touch
« on: February 05, 2014, 05:44:51 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


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


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


  • Administrator
  • Hero Member
  • *****
  • Posts: 15426
  • Official Playmaker Support
    • View Profile
Re: Rotating a wheel with touch
« Reply #1 on: February 11, 2014, 12:44:29 PM »

 Not an easy task for sure.

Typically you should cut down your problem.

stopping the wheel is something separate from spinning and launching it.

Are you looking for a true physics system or a mathematical system?




  • Playmaker Newbie
  • *
  • Posts: 14
    • View Profile
Re: Rotating a wheel with touch
« Reply #2 on: February 13, 2014, 01:30:40 PM »
Seems like it's mathematical for where the wheel stops but maybe physical in how fast it spins.

Isn't there a feature that get's the rotation of the wheel as a float value that can do an array of float checks to see what option is in the "range" of what gets landed upon?