Hello
I would like to get a train (locomotive and one or more carriages) to follow a railroad track ?
The track will be made up of stretches which are straight as well as curved ones and eventually the railroad track will branch out into more destinations when more train-stations are added (at runtime)
I was told that an a* pathfinding algorithm is what I need by a helpful fellow over at Unity Answers and he pointed me to this site.
Now, since I’m not very skilled in programming I would like to know if this is the right solution ?
—EDIT—
to be more specific: is the funnel algorithm best suited in this case as a railroad track could be treated as a funnel ?
—end-of-EDIT—
Also, what would the right solution be when the train is pulling a number of carriages ie. is a seperate A* pathfinding algorithm needed for each entity (locomotive + carriage1 + carriage2) or could the aforementioned entities be made as one in order to avoid calculating the same pathfinding algorithm over and over as one would presume that the whole of the train would travel to the same destination (unless someone had a really bad day at work !)