I think about using your A* pathfinding tool to let trains find the right way.
I want to create railroads from the generated smoothed paths at runtime. I think with PointGraphs i can create the railroads and would move the trains along the smoothed generated path.
is it possible to create railroads from pathfinding smoothed path and let objects move along that path?
can i insert new waypoints at runtime?
thanks for help
Hi
“is it possible to create railroads from pathfinding smoothed path”.
Well, you can get all the points of the path easily, creating railroads is something I don’t know about, you will have to find that out yourself.
“can i insert new waypoints at runtime?” Yes, but it does require a complete rescan of the graphs (so it is an O(n) operation if you know what that means).
You can do that by adding a new node GameObject (e.g as a child to the ‘root’ object used in Point Graphs) and the rescanning the graph using AstarPath.active.Scan ().