# playMaker

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

#### spiralKing

• Junior Playmaker
• Posts: 50
##### Rotating a wheel with touch
« on: February 05, 2014, 03: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

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

• Hero Member
• Posts: 14014
• Official Playmaker Support
##### Re: Rotating a wheel with touch
« Reply #1 on: February 11, 2014, 10:44:29 AM »
Hi,

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?

bye,

Jean

#### IceMaker

• Playmaker Newbie
• Posts: 14
##### Re: Rotating a wheel with touch
« Reply #2 on: February 13, 2014, 11:30:40 AM »
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?