Intelligence · interface

NavigationBridgeOptions

Explained in Agents and behaviour.

interface NavigationBridgeOptions
import type { NavigationBridgeOptions } from '@driftengine/ai';

Properties

NameTypeDescription
snapDistancereadonlyoptionalnumberHow far a destination may be from the nearest graph node and still count as that node.
More

Infinite by default, which snaps to the nearest node however far away it is. A consumer with a sparse graph over a large world wants a real number here: without one, "go to the roof" routes to the nearest node on the ground and the agent walks confidently to the wrong place.

maxNodesreadonlyoptionalnumberLongest route the bridge will hold, in nodes.