Agent gets stuck trying to take a shortcut while on a very simple path

For some reason, my agents are not smart enough to to follow a simple path, I would want it to follow the dotted line, but isntead it takes the drawn line, and then gets stuck forever in that corner. This is so basic I donät even know what to look for:

public void SetDestination(Vector3 destinationt)
        agent.destination = destination;

Solved by cutting pickNextWaypointDistance in half :slight_smile:

1 Like