Navigation · function
attachGoal
Point the portals of the goal's polygon at the goal node, and let the previous ones go.
Explained in Navigation.
function attachGoal(portals: PortalGraph, poly: number, x: number, z: number): voidimport { attachGoal } from '@driftengine/nav';Parameters
| Parameter | Type | Description |
|---|---|---|
portals | PortalGraph | |
poly | number | |
x | number | |
z | number |