Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

public var velocity: Vector3;
public Vector3 velocity;

Description

The current velocity of the NavMeshAgent component.

Setting the velocity is not constrained by the maximum acceleration.