threejs-worldgen
    Preparing search index...

    Function routeCost

    • Edge cost (seconds) for RoadGraph.shortestPath: cars prefer fast arterials, bicycles avoid arterials and rough surfaces, pedestrians walk at 1.4 m/s and prefer sidewalks.

      Parameters

      Returns (edge: RoadEdge, length: number) => number