NavMesh Character

Description

The NavMeshCharacter component extends a Character through composition, incorporating NavMesh-based navigation. This enables a Character to intelligently navigate through the world.

Properties

/// <summary>
/// Cached NavMeshAgent component.
/// </summary>

public NavMeshAgent agent

/// <summary>
/// Cached Character component.
/// </summary>

public Character character

/// <summary>
/// Should the agent brake automatically to avoid overshooting the destination point?
/// If this property is set to true, the agent will brake automatically as it nears the destination.
/// </summary>

public bool autoBraking

/// <summary>
/// Distance from target position to start braking.
/// </summary>

public float brakingDistance

/// <summary>
/// The ratio (0 - 1 range) of the agent's remaining distance and the braking distance.
/// 1 If no auto braking or if agent's remaining distance is greater than brakingDistance.
/// less than 1, if agent's remaining distance is less than brakingDistance.
/// </summary>

public float brakingRatio

/// <summary>
/// Stop within this distance from the target position.
/// </summary>

public float stoppingDistance

Public Methods

Events

Last updated