- Home /
How to apply A* algorithm in C#?
I have this RTS-like system, and I want my units to be able to walk around walls... But I was just wondering if any of you guys had some code or (even better) a tutorial about A* algorithm based path finding...?
-thanks :)
Answer by speedything · Aug 07, 2012 at 01:19 PM
There's a few solutions out there.
If you have a Pro unity then the inbuilt Pathfinding is great.
If you don't there are a few plug-ins. Personally I would recommend - http://www.arongranberg.com/unity/a-pathfinding/ - free, powerful, and lots of documentation
The third option is to write your own. Whether you can be bothered to do this or not, this article gives a good overview of the process - http://www.policyalmanac.org/games/aStarTutorial.htm
Answer by Meltdown · Aug 07, 2012 at 01:18 PM
Take a look at Aron Granberg's A* pathfinding project. There is a free version and a paid version. While I know it doesn't show you how to build one in C#, it's highly recommended to use his existing libraries over writing your own.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
RTS dynamic formation width and length 0 Answers
How do i get the IsPathPossible() function to ignore some nodes using Astar Pathfinding Project 0 Answers
How do i get the IsPathPossible() function to ignore some nodes using Astar Pathfinding Project 0 Answers
How to add multiple values to single variable(or something else)? 0 Answers