Question by
penguingohack · Feb 22, 2016 at 01:04 PM ·
c#pathfinding
Using A* pathfinding plugin, AI doesn't move or move in a wrong direction?
I'm learning to use the A* pathfinding plugin. I've successfully made a demo on a X/Z plane. As the project I'm working on is actually a 2D game, I want to use the plugin on the X/Y plane. However, while it works perfectly on a X/Z plane, it doesn't work well on the X/Y plane. I followed this instruction.
When I click Run
to run the game, the AI does calculate a right path:
I feel so sorry not displaying a picture here due to some network problems!
but then the AI moves in a wrong direction:
When it moves, it also keeping calculating its path. Should I change some code to fix the problem?
Comment
Your answer
