Exemplo n.º 1
0
 /// <summary>
 /// Gets the closest node index to a given position (Slower but guaranteed to be accurate)
 /// </summary>
 /// <param name="pos">The position to test against</param>
 public int ActualClosestNodeIndexTo(Vector2 pos, bool checkObstructions = true)
 {
     return(NodeNodeIndexQuadTree.ActualClosestIndexTo(pos, checkObstructions));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the closest node index to a given position (Slower but guaranteed to be accurate)
 /// </summary>
 /// <param name="pos">The position to test against</param>
 public int ActualClosestNodeIndexTo(Vector2 pos)
 {
     return(NodeNodeIndexQuadTree.ActualClosestIndexTo(pos));
 }