PathfindingResult
Contains the pathfinding data and time statistics.
Time statistics:
public TimeSpan PathfindingDuration { get; }
– duration of the pathfinding algorithm execution (A*).public TimeSpan OptimizingDuration { get; }
– duration of the optimization algorithm execution.public TimeSpan SmoothingDuration { get; }
– duration of the smoothing algorithm execution.
Pathfinding data:
public Vector3[] RawPath { get; }
– the source path obtained as the result of A* execution.public Vector3[] PathOptimized { get; }
– the path obtained after optimization algorithm execution.public Vector3[] PathSmoothed { get; }
– the path obtained after smoothing algorithm execution. If Smooth = false, then the value will be equal to PathOptimized.public int[] TargetIndices { get; }
– the indices of the target points in the PathSmoothed array. The target points mean the points used when callingNav3DPath.Find()
.public PathfindingResultCode Result { get; }
– pathfinding result code.