- Home /
Aron Ganberg Astar - add nodes at runtime with pointgraph
hello i am making a game where the player move following the aron ganberg pointgraph pathfinding solution (http://arongranberg.com/astar/). the user click on an object, and the player is moving to it.
at various times, i instantiate new portions of the terrain and delete the old ones. those portions are prefab which contains a number of nodes (tagged nodes) which i want to set as a new pointgraph. is there any way i can do that?
i tried AstarPath.active.Scan() after spawning the new terrain but the scan only recognize the old nodes. Scanning is set so it takes all the gameobjects tagged "nodes".
Your answer
Follow this Question
Related Questions
A* endless loop 0 Answers
A* pathfinding - incorrect nodes calculated 1 Answer
A* pathfinding: neighbor list not updating 0 Answers
A* pathfinder - next target 1 Answer