FloodPath making a straight line path ignoring the Navmesh

I’m using this code from the documentation,

ai.SetPath(FloodPathTracer.Construct(ai.position, floodPath));

But the agents aren’t creating paths along the Navmesh but instead drawing a straight line from them to the destination. I have my Max Nearest Node Distance set to 5 if that makes any difference and I’m using a Navmesh Graph. Is there something missing or is this the intended behaviour?



Do you have a screenshot of this?

Sorry for the late reply. I had to change the script back but it looked like this except the lines were straight from the agents (red) to the destination (blue).

That’s very strange. The path can literally only go from node center to node center.
Did you have a modifier of some kind attached?
Which version of the package are you using?