Hi, I just got back to this projet. I am using Unity’s AI navigation system on Unity 6.
The cube is the target of the navmesh agent.
The green line is the agent’s path.
The navmesh links have a limited height here in order to give a better view of what’s going on.
As you can see the agent doesn’t go straight to the target and struggles in the transitions between corners.
Have anyone encountered that?
Am I supposed to fix that by manually setting the link’s destination point whenever the agent enters a link? How should I do that without rewriting a pathfinding algorithm?
You can see the links on each side of the side face of the wall in the scene view. There is one link for each corner of the wall that originally handles the cornering of the full height of the wall. I reduced their dimensions here to around half of the wall.
My main problem is with the incorrect pathfinding, the agent isn’t supposed to go up during the second link transition for this path here. It should go straight for the cube.
While I know the agent rotation isn’t great here, I haven’t tackled the subject yet.