GetPath
Description
Returns a waypoint path between a start position and an end position for a specific vehicle type. The result will be a list of waypoint indexes.
Declaration
Parameters
Name | Description |
---|---|
startPosition | A Vector3 for the initial position. The path will be calculated from the closest waypoint located near the startPosition. |
endPosition | A Vector3 for the final position. The path will be calculated to the closest waypoint located near the endPosition. |
vehicleType | The vehicle type for which this path is intended. |
Returns
List<int> - the waypoint indexes of the path between startPosition and endPosition.
Example
Last updated