I’m using a LayeredGridGraph for a tower defense game. One layer for the ground units and another one 4 units higher for flying units. The units generally find their way successfully along their intended paths.
However, when I build a new tower and call AstarPath.active.UpdateGraphs(collider.bounds), some of the ground units will teleport up on to the flying grid if they are directly below it. This only happens the moment the tower is build. Future units that spawn will path correctly.
Does anybody know why this might be happening?