Shortest path finding using BFS in Unity game engine
About
BFS Algorithm to find the shortest path
This Unity project uses Breadth First Search algorithm to find the shortest path between 2 points.
BFS is an algorithm to find the shortest path between two points.
This algorithm can be used in Tower Defense games for Enemy AI to find shortest path between two pointsHOW TO USE :
- Set the transform of START and END point on the script attached to the Node gameobject and press play button. The Player/Enemy will spawn at the starting point and move towar the end point, through the path generated by the BFS algorithm. ( Look in the Youtube video provided )
TOOLS USED:
- Unity game engine
Goto my Github page to download the project link - Github Project