Navigation3D Getting stuck on point

As the title says, I feel as if I must be making a stupid mistake, but my navigation agent gets stuck on this corner regardless of any setting that I can see.

The output on the top left shows that I am constantly reaching the point, going over it, then turning around to go back to it. It’s like it never thinks it reaches this point so is always trying to get there but can’t quite.

I can change some settings in the nav agent like ‘path desired distance’ and I can skip over some points, but it seems like I always get stuck around the third path point that I touch.

I feel like this must be some sort of stupid error on my side as I cannot find anything online about it. Any advice is greatly appreciated.

The code for the nav agent from the screenshot: NavAgent Code - Pastebin.com



So… I actually figured this out and it was equally as dumb as I thought it might be…

My nav agent was not a child of my characterbody3d (which was moving) so, the nav agent truly thought it was never reach its point b/c it never moved… Silly, but I am glad it is working, and I read a lot of documentation while I was trying to figure it out, so i cant complain!

The correct node configuration incase someone comes across this in the future…

image

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.