Navigation · interface
NavPathOptions
Explained in Navigation.
interface NavPathOptionsimport type { NavPathOptions } from '@driftengine/nav';Properties
| Name | Type | Description |
|---|---|---|
lookaheadMreadonlyoptional | number | How far ahead along the path to aim, metres.MoreThe one number that decides whether following looks like driving or like a wind-up toy. Short and the agent snaps at each waypoint in turn; long and it cuts corners so hard it leaves the road. A useful value is a little more than the agent's turning radius, and the default of two metres suits somebody walking. |
arriveMreadonlyoptional | number | Within this of the last node, the agent has arrived. Default half a metre. |