Why is my pathfinding result not straight, I have used Manhattan

Can’t understand。

Hi

On a recast graph you will want to add the “Funnel Modifier” to smooth out the path afterwards.
See https://arongranberg.com/astar/docs/getstarted2.html