Original Post
I'm working on a wheel-of-fortune-style spinning wheel, and I'm looking to animate the spin. So I want to try using a quadratic easing function. This is on an android device using openGL ES 2.0, so view animations aren't in play.
So my problem is, given an initial speed, and a predetermined spin distance (and possibly a duration), how would I create an animation class.
The approach I've taken is, since I want a quadratic ease, I use -a(x^2) + initialVelocity (Where a is a constant) as my acceleration function, and I'm thinking of integrating this to get a distance function to ensure the correct distance is spun.
Does anyone have any suggestions on how to approach this? Am I on the correct path?
Thanks
So my problem is, given an initial speed, and a predetermined spin distance (and possibly a duration), how would I create an animation class.
The approach I've taken is, since I want a quadratic ease, I use -a(x^2) + initialVelocity (Where a is a constant) as my acceleration function, and I'm thinking of integrating this to get a distance function to ensure the correct distance is spun.
Does anyone have any suggestions on how to approach this? Am I on the correct path?
Thanks