Nav3DPath: Properties - Nav3D Doc

Docy Child

Nav3DPath: Properties

  • public bool IsValid { get; } – indicates whether the last pathfinding performed was successful. The value becomes false if the value of any Smooth or SmoothRatio property has changed.
  • public bool IsPathfindingInProgress { get; } – whether pathfinding currently in progress.
  • public Vector3[] Trajectory { get; } – the last found path trajectory. Use the IsValid property to ensure that the value is relevant.
  • public Bounds Bounds { get; } – the volume of the space that is occupied by the found path.
  • public bool Smooth { get; set; } – whether need to smooth the path when pathfinding.
  • public int SmoothRatio { get; set; } – a count of smoothing samples per min. search graph bucket. By default it is set to 3. It is not recommended to increase this value unnecessarily, as this will increase the time spent on pathfinding.
  • public int Timeout { get; set; } – the limit for the pathfinding duration. If the pathfinding takes longer, the Action<PathfindingError> _OnFail callback will be invoked.
  • public bool TryRepositionStartIfOccupied { get; set; } – if true, then in case if the start pathfinding point is inside of the bucket occupied by any obstacle, try to search a path from any free neighbor bucket.
  • public bool TryRepositionGoalIfOccupied  { get; set; } – if true, then in case if the goal pathfinding point is inside of the bucket occupied by any obstacle, try to search a path to any free neighbor bucket.
  • public PathfindingResult { get; } – the result of the last successful pathfinding.

Nav3DSphereShell

Represents a spherical shell that is perceived by other agents as an object to a...

Nav3DEvader

There is also a separate controller, whose behavior consists of just avoiding ne...

Nav3DAgentManager

This class implements several methods to get a list of all Nav3DAgents located i...

Nav3DPathTester

We implemented a useful component (Nav3DPathTester), which can be used while bui...

PathfindingResult

Contains the pathfinding data and time statistics. Time statistics: public TimeS...

Nav3DPath: Events

For the convenience of notification when the pathfinding finished, the following...

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...

Chat Icon Close Icon
en_USEnglish