I went through a begginer tutorial and got the nodes all set up and the ai path and ai destination setter attached to my enemy game object. I connected it to my own waypoint system and through debug statements and the inspector I can see that the pathfinder is correctly setting the destination to the next waypoint. In the scene view I can see the green line correctly showing the path to get to the waypoint, but the ai ignores this path and instead moves continuously up and to the right. I’ve tried disabling the obstacles and the ai still moves up and to the right while simultaneously showing the correct path with the green line. How can I fix this?
Relevant code: https://pastebin.com/nA6kuGw5
That sounds odd. Are you sure there are no other scripts on the agent that could interfere with the movement?