I have this procedurally generated maze which I solve using the Navigation2D. It looks like this
I have turned Show Navigation on in the Debug menu hence the green outline. As the sprite takes a corner you can see it's taking the slanted line.
I want it to restrict itself to right-angled turns only. I configured the navigation polygon to 4 pixels wide, and the inverse of that polygon as my collision polygon so it's supposed to be a tight fit?. I am confused as to why there's that blurry outline at the vertices.
My repo is here https://github.com/plasticruler/tower-defence-maze
Also, any comments on why it doesn't always return the shortest path?
