five-on-it / packages/ai/src/nail-strips / stripSpotAhead
Function: stripSpotAhead()
stripSpotAhead(
graph,x,z,vx,vz):LaidStrip|undefined
Defined in: packages/ai/src/nail-strips.ts:187
Where to lay a strip ahead of a car at (x, z) going (vx, vz) (see the module documentation), or undefined: off the roads, nothing ahead in reach, or the roads part before a strip could be laid.
Parameters
graph
x
number
z
number
vx
number
vz
number
Returns
LaidStrip | undefined