Navigation · function

attachStart

Point the start node at the portals of the polygon holding it.

Explained in Navigation.

function attachStart(portals: PortalGraph, poly: number, x: number, z: number): void
import { attachStart } from '@driftengine/nav';

Parameters

ParameterTypeDescription
portalsPortalGraph
polynumber
xnumber
znumber