I encountered this problem when programming movement and rotation of a sprite. it's a train moving on a parabola curve. I figured out the movement function but have trouble on the rotation.
rotation is depend on the y variable of the movement function, let's call it variable a.
have a few points from placing the sprite at right position and rotation.
(a, r) // a is from y value on the parabola, r is the rotation value(the value i seek from the unknown function) r is dependent on y value;
will be (x,y) on a xy plane
(7, 0) (43, -26.31) (85, -31.4) (189, -34.55) (351, -38.5) (493, -40.82) (740, -44.87)
I need to find the rotation function that takes a as an input.
from the look of it, the graph look like r=a^something, where something < 1;
Thank advance for any help from you guys.