Hello everyone, I am learning navigation for godot. I used navmesh to implement basic pathfinding functions in 2D, but sometimes the path selection can become strange, as shown in the picture!
The path has undergone a strange deviation,What parameter is causing this? :
I cannot click your picture to expand it enough to read what’s in your screenshot. Probably also going to need more info about how you set up the NavigationRegion2D, and how you generated your NavMesh.
This is the scene tree of the tank and the main This is the scene tree of the tank and the main scene, where the tank will serve as the child node of the unit node in the main scene
Ok, everything appears to be setup correctly. My best suggestion would be to play with the Radius setting in the NavigationPolygon. I notice you changed it to 30px. There are also a ton of settings you could play with in NavigationAgent2D.