I sometimes want to perform the following operation.
- Create a pointGraph from a set of locations
- Set pointGraph properties
- Connect Nodes.
- Find a path between two positions using the pointGraph.
- Discard the pointGraph.
I have no problems with 1 to 3.
Currently the only way I know of doing 4 after 3 is
a. Add the graph to the AStarPath
b. Create NNConstraint with pointgraph as a mask.
c. Create ABPath with the two positions.
d. Add NNConstraint created in b.
Is the above a to e the only way to achieve 4.?
I just want to use a temporary graph to find a path and will not be using it ever again.
I wanted to confirm best practice if I wish to achieve this.