NPC Pathfinding COMPLETE

Completed Pathfinding system from Vector3 Position to Vector3 Position
This commit is contained in:
juliuse98
2021-10-01 23:19:18 +02:00
parent 6deadb9c22
commit a24826da16
3 changed files with 123 additions and 152 deletions

View File

@@ -23,6 +23,8 @@ public class PathNode
{
neigbors = new List<PathNode>();
position = Vector3.zero;
index = new Vector2Int(0,0);
parentIndex = new Vector2Int(0,0);
scoreG = Mathf.Infinity;
scoreF = Mathf.Infinity;
scoreH = Mathf.Infinity;