Nav Mesh Agent can't decide on path
While trying to make an enemy move towards the player using Nav Mesh Agent so that it pathfinds, I ran into a strange issue where despite giving the Nav Mesh Agent a destination, confirming that it has that destination, and making sure that the destination should accessible for the enemy, the enemy just jitters in place.
.
Video (The white thing marks it's destination (Seen in the Console at the bottom)):
https://drive.google.com/file/d/18URW09Azo_pI6yFGB304LW3wBJudRzHw/view?usp=sharing
Here you can see the Nav Mesh
Here you can see that the white thing is in the Nav Mesh, though close to the edge The pathfinding has been working for me, but every once in a while it just decides that a certain destination can only be reached by jittering.
Is there any way to fix this?
Is this a glitch/mistake with Unity's pathfinding or is it the fault of my own code?