Skip to content

five-on-it / packages/world/src/level / roadPointAt

Function: roadPointAt() ​

roadPointAt(road, along): object

Defined in: packages/world/src/level.ts:745

The point of a road's centre line along metres from its start (m), with the height of the road's surface there and the heading of its forward lanes; beyond either end the end segment carries straight on.

Parameters ​

road ​

Pick<RoadDef, "points">

along ​

number

Returns ​

object

x ​

x: number

y ​

y: number

yaw ​

yaw: number

z ​

z: number