A* Pathfinding Project Point Graphs in 2D

Okay so I posted this on Unity Answers but haven’t gotten a reply. I’m posting it here in the hope that someone will have an answer for me.

Like the title says. I’m implementing an A* AI, using Point Graphs, in my Unity2D game with the A* Pathfinding Project by Aron Granberg and am having some trouble with getting it to work. As far as I can tell it has been set up correctly, however it doesn’t seem to be working properly the best way to show this would be with a GIF, so here’s one:


This is what happens


This is how I configured the Graph.


And this is how I configured the Enemy.

What have I done wrong and how can I fix it?

Okay, so I changed the Turning Speed in the AI Path script to zero and that stops the enemy from rotating weirdly but it now shrinks while moving and it still only moves on the X axis. So, does anyone have any ideas?

Don’t worry guys, I solved this by using the 2D Path Script found here GitHub - fgladisch/ai-path-2d: AI for following paths in 2D games using the A* Pathfinding Project for Unity.

1 Like