Nav3DPathTester - Nav3D Doc

Docy Child

Nav3DPathTester

Мы реализовали специальный компонент (Nav3DPathTester), который может быть использован при построении игровых сцен для проверки того, как будет проходить путь в разных местах сцены.

  • Для его использования вам надо добавить на любой игровой объект на сцене компонент Nav3DPathTester.
  • Для его работы система Nav3D должна быть инициализирована, так что его применение возможно только в игровом режиме.

После добавления компонента вы увидите его инспектор:

Здесь смысл всех параметров соответствует смыслу параметров метода Nav3DPath.Find() .

Добавьте на игровую сцену несколько игровых объектов, которые будут служить в качестве точек между которыми будет искаться путь. Далее добавьте эти объекты в список Targets в инспекторе Nav3DPathTester.

В игровом режиме, при включенном Gizmos вы сможете увидеть как путь пройдет через все объекты Targets.

Ниже показаны два примера тестового пути для трех объектов при выключенной и включенной опцией Loop.

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 Nav3DAgentConfig parameters can be configured through the code as well. To ...

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