Skip to content

five-on-it / packages/ai/src/steer-climb / CLIMB

Variable: CLIMB ​

const CLIMB: object

Defined in: packages/ai/src/steer-climb.ts:35

The numbers of taking the links.

Type Declaration ​

arrive ​

readonly arrive: 0.6 = 0.6

Off a link: feet within this of the floor it leads to (m).

failPenalty ​

readonly failPenalty: 20 = 20

How much dearer a link that failed is to plan over.

failTicks ​

readonly failTicks: 600 = 600

How long a failed link stays dear (ticks).

giveUpSeconds ​

readonly giveUpSeconds: 8 = 8

A link not taken within this many seconds of coming near it has failed: a ladder, a drop, a hop.

hopJump ​

readonly hopJump: 1.7 = 1.7

A hop's jump is pressed with the wall within this, ahead at knee height (m)…

hopRay ​

readonly hopRay: 3 = 3

How far a hop looks for its wall (m).

hopTooNear ​

readonly hopTooNear: 0.8 = 0.8

…and stepped back from when it is nearer than this (m).

ladderSlow ​

readonly ladderSlow: 0.6 = 0.6

Within this of a ladder's climb line or landing (m), it heads there slowly.

liftLevel ​

readonly liftLevel: 0.05 = 0.05

A platform within this of a stop's height stands there (m).

liftOn ​

readonly liftOn: 0.6 = 0.6

Within this of the platform's middle (m), someone walking onto it is on it.

liftSeconds ​

readonly liftSeconds: 12 = 12

The same for a lift, on top of its round (s): waiting for it is part of taking it.

liftSpare ​

readonly liftSpare: 1.5 = 1.5

A lift is boarded only with this much of its stop left (s).

liftWait ​

readonly liftWait: 1 = 1

Where to wait for a lift: this far beyond its platform's edge (m).

near ​

readonly near: 3 = 3

Within this of a link's start (m), the link takes the whole input: no rays, no stuck recovery.

stairsSeconds ​

readonly stairsSeconds: 15 = 15

The same for narrow stairs (s): a longer walk.