Unity C# PathFinding demo
- Jens Hobo
- Jan 10, 2020
- 1 min read
Updated: Sep 4, 2020

on the right is what the player sees and on the right is what the program sees. the whole map (or the part that is given to the program) is mapped using a 2D array, with red being places the program cannot go to, blue is where the program wants to go, green is where it is now, purple are nodes the program checked for the distance between that node and the end position and yellow being the path it found.
currently ones the green and blue nodes meet it picks a new random location to go to.
however, if a player gets close it will follow the player for a while before returning to it idle state (picking a random location to go to)


Comments