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:
![Temple Run screenshot][1]
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:
- [SimplePath][2]
- [WaypointMaster][3]
- [SeekSteer][4]
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 ?
[1]: /storage/temp/21668-temple_run.jpg
[2]: http://u3d.as/content/alex-kring/simple-path/1QM
[3]: http://wiki.unity3d.com/index.php?title=WaypointMaster
[4]: http://wiki.unity3d.com/index.php?title=SeekSteer
↧