Skip to content

format

typescript
NavMeshAgent.stoppingDistance

class: NavMeshAgent

description

Set the stopping distance for the agent.

When the distance between the agent's position and the target position is less than or equal to this value, the agent will stop moving.

parameter

param_nametypedescription

reture

typedescription
numberThe stopping distance for the agent.

code example