- Home /
Move a game object between two positions in a sin wave
I have two positions in my scene and I want a sphere game object to move between them. But This is easy enough to do with the move towards command, but what I want to happen is the ball to accelerate when leaving one, then decelerate when approaching the next in a controlled curve.
I was told that I could do this with a sin wave, however I'm unsure how. Is there a simple way to do this ?
Your answer
![](https://koobas.hobune.stream/wayback/20220613152854im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Self space coordinates change after quaternion rotation in an unexpected way 0 Answers
Child GameObject is aligned to world axis and not the parents axis (UPDATE) 1 Answer
My object does not appear in the proper position 1 Answer
Taking a "Range mapped" value and using it to drive the position of an object. 1 Answer
How can I get the precise transform position in Update? 1 Answer