What am i doing wrong with the navmesh here

Hello

I have a basic square room, with a sliding door which has a hit box attatched. I created a navmesh and used the documentation example code to find a path to the location in the room. But the path seems to be a really odd choice.

This is what happens:

The green line from the red character was the path it found to the target.

I am wondering why it does a line like this for the path and not just a straight line given there is nothing in the way? Have i made an error in the component settings that would fix this problem ?

Hi

When not post processed, the path is simply the nodes the path traversed. Try adding the Funnel Modifier, it will post process the path and find the shortest path inside the corridor of nodes that the path traversed, and in this case, give you a straight path.