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): void
import { attachGoal } from '@driftengine/nav';

Parameters

ParameterTypeDescription
portalsPortalGraph
polynumber
xnumber
znumber