Randomly generated parameters - Nav3D Doc

Docy Child

Randomly generated parameters

The speed and radius parameters can be set to a randomly generated value. This can be useful for game scenarios where there are many agents of the same type (for example, many similar birds). To make their characteristics (radius and speed) slightly different, you can choose to generate a random value. Then you can specify ranges for this value, as well as its distribution.

There are two types of distribution: continuous uniform and Gaussian. The first one does the same thing as UnityEngine.Random.Range(a, b). The type of Gaussian distribution can be described as follows: most values will be selected from about the middle of the range, but there will be a few values that are closer to the ends of the range.

Below is an example of setting the radius for the range [0.1, 0.3] according to the Gaussian distribution.

  • All asset classes you need to work with are contained in the Nav3D.API namespace.

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