Skip to content

five-on-it / packages/world/src/pavements / PAVEMENT

Variable: PAVEMENT ​

const PAVEMENT: object

Defined in: packages/world/src/pavements.ts:35

The numbers the pavements are laid out by (m).

Type Declaration ​

clearance ​

readonly clearance: 0.4 = 0.4

Clear of walls by this much.

cornerReach ​

readonly cornerReach: 14 = 14

A corner joins pavement ends this near each other.

crossingBack ​

readonly crossingBack: 2 = 2

A crossing lies this far back from a junction's box.

crossingReach ​

readonly crossingReach: 3.5 = 3.5

A crossing finds its kerb nodes this near where they should be.

doorOut ​

readonly doorOut: 1.2 = 1.2

A door stands this far in front of its building.

doorReach ​

readonly doorReach: 6 = 6

A door is linked to a node at most this far away.

merge ​

readonly merge: 1.5 = 1.5

Nodes closer than this are one.

offset ​

readonly offset: 2.2 = 2.2

How far beyond a road's edge people walk.

probe ​

readonly probe: 1.5 = 1.5

The checks along a link are this far apart.

rise ​

readonly rise: 0.8 = 0.8

The ground beside a road may stand this much above or below it…

roadMargin ​

readonly roadMargin: 0.8 = 0.8

Kept off every carriageway by this much.

shifts ​

readonly shifts: readonly [0, 0.9, -0.9, 1.8]

Where a node stands when something is in the way at the offset: so much farther out (or in).

slope ​

readonly slope: 0.25 = 0.25

…and slope this much (rise per metre).

step ​

readonly step: 6 = 6

Between two nodes along a road.