Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: spiralKing 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
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
-
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
-
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?