I am wondering how the game https://play.google.com/store/apps/details?id=com.namcowireless.flightcontrol&hl=en makes planes follow the path drawn by player.
Does anyone know of a simple algorithm to do this?
I am thinking of a game where there are predefined paths, which is kind of similar to the game I linked, but more like this:
So I want to go from one box to another, but following the paths. Please help. The paths would not be dynamic in my game.
edit (not sure if it's better to add post or update original, so doing both):
The paths will not be in terms of any function. The paths are going to represent roads from one point to another. During level creation, I'd define them as makes sense for the level.
Edited by abeylin, 19 November 2013 - 04:16 PM.