NavAgent3D not following path

Godot Version

Question

Hey, i’ve been trying to solve this for a few days and is driving me nuts. My navAgent refuses to follow the path to the player (that is being generated correctly) and just go straight to it not avoiding the boxes in the NavMesh.

Here you can see that the path to the player (behind the box) is generating correctly but the mobs still want to go straight.

Code:


I have tried a few variation of the code but the same.

Scene setup:
image

Any ideas?

I found the solution for this. i had to put the path_desired_distance in the navigationAgent3D pathfinding property to a low value.

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