Navigation
Contains functions for basic navigation.
info
This module can only be used in Entity scripts.
Functions
createPath(startPoint, endPoint, pathConfig)
Creates a path between two points.
Parameters
- startPoint — Starting point.
- endPoint — Target point.
- pathConfig — Configuration for path generation behaviour: simplify - if the path should be simplified using funnel algorithm (boolean). smooth - if the path should be smoothed (boolean). graphType - GraphType to use for path generation.
Returns
Array of Vector3 points on the path.
Enums
GraphType
- Default — value = 0
- Vehicle — value = 1