Hi,
My question is, as the title states, how can I update the graph with the old bounds of the GameObject after the object has been destroyed (making it free for movement)
My code atm:
// Temporarily saving the collider bounds for A*
var temp: Bounds = collider.bounds;
// Destroy the actual GameObject
Destroy(this.gameObject);
// Making sure A* removes it from the pathfinding:
print("Removing from A*, Bounds=" + temp + ", GameObject=" + this.gameObject);
AstarPath.active.UpdateGraphs(temp);
Thanks in advance,
~Z