I’m making a yet-another-endless-run game. I know how to make my character ( which is now a cube with Rigid Body component attached ) moves along axis and changes its moving direction by Arrow keys.
However, moving in straight line is boring. Therefore I would like to add some curves to the road, such as this:
But how do I make my characters to follow the path? I search in Google, Unity Answers, Unity Asset Store & the forum, and found these:
but seems all of these are pathfinding algorithms. I just want the user moves in a certain curve instead of straight line. Did I miss out other code sample or tutorial ?