Follow three defined paths

Hey guys, I’m looking for some idea to make a gameobject follow 3 defined paths that you can choise one of them Like this game

I think that they not use shader for curve control, like this case

Someone have a idea to make 3 defined follow paths ?

1 Answer

1

You could do three follow path with any path or spline system. Using iTween’s PutOnPath() and PointOnPath() would do the job. But if it were me, I wouldn’t use three paths. Just use a single path and then use a local position relative to that path. To change lanes, just change the offset. If you have a very curvy path, it might get a bit more complicated. You would need to calculate the offset dynamically to get it to parallel the original path, but it is only a few more lines of code.

Thank you guy, it's exactly what I want to know, I want to give +1 for you but my rank is low =/