-
How do I make an equation define an object’s movement through x and y axis?
I want to make an object move in unison to an equation i can define. Like if I say y=sin(x), an object will move up sin(x) units, move right x units. I know I can use the vibrate tag and make it have a regular oscillation, but this doesn’t work in my special case for a function like y=|sin(x)| because the oscillations slow down as they reach the top, then stop, then accelerate as they reach the middle, etc. I want the object to accelerate as it gets to the top and then bounce back with the same speed, then as it reaches the bottom it slows down like a regular graph. It’s hard to explain. But is there a way other than manually doing everything point by point?