Skip to content

five-on-it / packages/sim/src/grappler / GRAPPLER

Variable: GRAPPLER ​

const GRAPPLER: object

Defined in: packages/sim/src/grappler.ts:36

The Grappler's numbers.

Type Declaration ​

across ​

readonly across: 1.3 = 1.3

…no farther off the cruiser's line than this (m, across)…

closing ​

readonly closing: number

…closing slower than this (m/s: 15 km/h)…

drag ​

readonly drag: 0.6 = 0.6

A held car's brakes drag at this share of their force, its drive forward cut.

heavy ​

readonly heavy: 3000 = 3000

…and no heavier than this (kg): a heavier car snaps it at once.

pull ​

readonly pull: -0.8 = -0.8

Its driver pulling at least this hard in reverse (the throttle, −1 to 0)…

pullTicks ​

readonly pullTicks: 60 = 60

…for this many ticks (a second) snaps the net.

reach ​

readonly reach: 2 = 2

The net hooks a car whose rear is this near the cruiser's nose (m)…

resetTicks ​

readonly resetTicks: 240 = 240

A net that snapped is ready again after this many ticks (four seconds).

tether ​

readonly tether: 6 = 6

The net snaps once the two cars' centres are this much farther apart than their half lengths (m).