- Home /
2D pathfinding options
Hey everyone! I was wondering what kind of options I had available to me for 2D pathfinding? I was extremely sad to find out that the NavMesh system is not functional in the 2D workflow :( It would have been perfect for the top down 2D game I am currently working on!
So Now I'm looking for a new solution! So far it seems like polyNav is the most obvious choice (aside from painfully rolling my own). I was just wondering if anyone had any other alternate suggestions or advice for me? Has anyone used poly nav? Was I somehow mistaken in my belief that the navMesh system will not function in the 2D workflow?
Depending on your situation, it's actually not very difficult to "roll [your] own". A*
with a point-to-point distance heuristic is quite fast and quite easy to implement.
You could do what Benproductions1 $$anonymous$$gested, or you could just uncheck the 2D option and rotate your scene so everything applies to the x and z axis ins$$anonymous$$d of the x and y axis. You would then be able to generate a Nav$$anonymous$$esh and use NavAgents. Unfortunately 2D does not allow for Navigation with the current setup in 4.3.
Answer by Brunomir · Mar 25, 2015 at 07:37 AM
http://arongranberg.com/astar/
I started using this a couple of days ago