- Unity 2018 Artificial Intelligence Cookbook(Second Edition)
- Jorge Palacios
- 69字
- 2021-07-16 18:11:35
How it works...
The GraphVisibility parent class indexes every vertex on the scene and makes use of the FindNeighbours function on each one. This is in order to build the graph and make the connections without total user supervision, beyond placing the visibility points where the user sees fit. Also, the distance between two points is used to assign the cost to that corresponding edge.