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): voidimport { attachStart } from '@driftengine/nav';Parameters
| Parameter | Type | Description |
|---|---|---|
portals | PortalGraph | |
poly | number | |
x | number | |
z | number |