Waired path on npc

Hi why my npc has have waired path not is linear zigzag
Wrongpath

Hi

You might want to use a path modifier to simplify or smooth the path.
See https://arongranberg.com/astar/docs/modifiers2.html

If you are using a recast/navmesh graph then make sure you are using the FunnelModifier.