I need to update my graph when my position or size of my obstacles changes. Right now, I know of two ways to do this:
- myAstar.active.Scan();
- myAstar.active.UpdateGraphs(bounds, delay);
I’m using UpdateGraphs at the moment (even for the first time that I create the graph, which I do programmatically), because Scan is very slow. UpdateGraphs is almost instantaneous, even when I pass in a bounds that encompasses my entire (400x400 node) graph. This seems to work just fine, is this the correct way to do an update? If so, is there a way to make the call to do a full graph update without passing in a bounds that eclipses the whole graph?
Thank you.