Hi @aron_granberg , hope you’re well. I’m getting this exception a couple of seconds after enabling a GameObject that has a NavmeshCut component, which is in between 2 areas. It’s impossible to go from low ground to high ground with the missing piece, but it’s possible to go from high to low via a NodeLink2 (the white lines in the image)
// edit: using 4.2.18
So it seems to be happening when the target destination is set to the node on the left side, which is unreachable and the path fails. When the target becomes reachable and is set, then the exception is thrown. I could fix it by checking if the destination is reachable, but am not sure how to do that without performing pathfinding.
Here’s how I search for a new path:
var path = ABPath.Construct(PlayerActorPosition, destination);
path.nnConstraint = nnConstraint;
path.calculatePartial = allowPartial;
path.traversalProvider = traversal;
pathfindingSeeker.CancelCurrentPathRequest();
pathfindingSeeker.StartPath(path, callback, (int)CurrentNavmeshArea);
Hi
Hmm. Would it be possible for you to try this out with the beta version? I think it might be fixed in the beta already.
The beta requires 2022.2.10f1 or higher, but we’re using 2021.3 LTS. We can upgrade at this stage unfortunately