A* Pathfinding Project
4.0.3
The A* Pathfinding Project for Unity 3D
|
Moves and updates a single node in a point graph.If you want to move a single node in a point graph, you might be lost in how to do that in the "correct" way. Would you only update a node's position field, the node would be moved, however all connections would remain even if some might be invalid and no connection costs will have been recalculated to reflect the new position. For that reason this example script is put here. It simply picks a random node (closest node from within a sphere, so not really random) and moves it in a random direction a small distance.