five-on-it / packages/ai/src/steer-vehicle / followRoute
Function: followRoute()
followRoute(
route,x,z,look):Pursuit
Defined in: packages/ai/src/steer-vehicle.ts:285
The pursuit point: look metres along the route from the car's projection on it, the route's end when it is nearer; also how far the end is, and the corners ahead. The segment the car is on is remembered and never given up backwards.
Parameters
route
x
number
z
number
look
number
Returns
Pursuit