Nav3DPath: Properties - Nav3D Doc

Docy Child

Nav3DPath: Свойства

  • public bool IsValid { get; } - показывает, был ли успешным последний завершенный поиск пути. Свойство примет значение false, если изменить значение одного из свойств Smooth or SmoothRatio .
  • public bool IsPathfindingInProgress { get; } - выполняется ли поиск пути в данный момент.
  • public Vector3[] Trajectory { get; } - траектория последнего найденного пути. IsValid Используйте свойство IsValid для проверки того, что значение достоверно.
  • public Bounds Bounds { get; } - объем пространства, который занят найденным путем.
  • public bool Smooth { get; set; } - нужно ли производить сглаживание пути.
  • public int SmoothRatio { get; set; } - количество проходов сглаживания по отношению к минимальному размеру ячейки графа поиска, по умолчанию установлено как 3. Не рекомендуется увеличивать это значение без необходимости, так как это увеличит время поиска пути, в случае если сглаживание включено (свойство Smooth == true).
  • public int Timeout { get; set; } - максимальное время поиска пути. В случае, если поиск пути длится дольше, произойдет выполнение колбека Action<PathfindingError> _OnFail , если он был передан в Find().
  • public bool TryRepositionStartIfOccupied { get; set; } - в случае, если для поиска пути указана стартовая точка, находящаяся в ячейке пространства, занятой препятствием, пытаться найти соседнюю свободную ячейку и осуществлять поиск из нее.
  • public bool TryRepositionGoalIfOccupied  { get; set; } - в случае, если для поиска пути указана целевая точка, находящаяся в ячейке пространства, занятой препятствием, пытаться найти соседнюю свободную ячейку и осуществлять поиск до нее.
  • public PathfindingResult { get; } - результат последнего успешного поиска пути.

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: События

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

Лог агента

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

Создание и настройка описания агента из кода

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
ru_RURussian