Example #1
0
 public static bool CalculatePath(Vector3 sourcePosition, Vector3 targetPosition, int areaMask, NavMeshPath path)
 {
     path.ClearCorners();
     return(NavMesh.CalculatePathInternal(sourcePosition, targetPosition, areaMask, path));
 }