Path : Properties - Nav3D Doc

Docy Child

Path : Properties

  • public Vector3[] Trajectory { get; } – the found path. Use this property to get the last found path. The value is true if the UpdatePath method was called and completed successfully, and no other properties of the Path object have changed since then. Use the IsValid property to verify that a value is valid.
  • public Vector3[] TrajectoryOriginal {get;} – original found path.
  • public Vector3[] TrajectoryOptimized {get;} – optimized found path.
  • public Vector3[] TrajectorySmoothed { get; } – smoothed found path. The value will be different from TrajectoryOptimized if the Smooth property is set to true.
  • public Bounds Bounds { get; } – the amount of space occupied by the found path.
  • public Vector3 Start { get; set; } – the starting point of the path.
  • public Vector3 Goal { get; set; } – the end point of the path.
  • public int SmoothRatio { get; set; } – the number of smoothing passes in relation to the minimum cell size of the search graph, by default it is set to 3. We do not recommend increasing this value unnecessarily, as this will increase the path search time if smoothing is enabled (Smooth == true property).
  • public int Timeout { get; set; } – maximum path search time. If the path search takes longer, the Action<PathfindingError> _OnFail callback will be executed if it was passed to UpdatePath().
  • public bool Smooth { get; set; } – whether it is necessary to smooth the path.
  • public bool IsValid { get; } – whether the current value of the Trajectory is not null and whether it is true for the current values ​​of the remaining properties. For example, if you called UpdatePath(), and after its successful completion you changed the value of the Start property, then the path will no longer be up-to-date and IsValid will be equal to false.
  • public bool IsPathUpdating { get; } – whether the Path instance is in the process of pathfinding.

Agent log

Here you can copy the contents of the agent log to the clipboard by clicking the...

Debug drawing

In this section, you can visualize the agent and his nearest environment. This s...

Creating and configuring an agent description from code

All Nav3DAgentDescription parameters configured in the description inspector c...

Nav3DManager

Nav3DManager is a helper static class. Can be useful for checking whether Nav3D ...

Nav3DInitializer

To use Nav3D in playmode, you need to initialize it. The Nav3DInitializer compon...

Nav3DObstacleLoader

To use the possibility of pre-baking obstacles on the scene in editor mode and t...

Nav3DObstacle

To manage obstacles on the scene, the Nav3DObstacle component is designed. Attac...

Obstacle combinations

We will call obstacles with the selected processing mode “Runtime” as runtim...

Operations with obstacles

Regardless of the obstacle processing mode, the processing procedure consists of...

Deeper dive into obstacles

As already described above, in order for an obstacle to be taken into account du...

Nav3DAgent : Debug

The Nav3DAgent has an inspector that provides several useful functions to help w...

Nav3DAgent

As mentioned above, you can use the Nav3DAgent script as a component for your ga...

Chat Icon Close Icon
en_USEnglish