five-on-it / packages/sim/src/grappler / GRAPPLER
Variable: GRAPPLER
constGRAPPLER:object
Defined in: packages/sim/src/grappler.ts:36
The Grappler's numbers.
Type Declaration
across
readonlyacross:1.3=1.3
…no farther off the cruiser's line than this (m, across)…
closing
readonlyclosing:number
…closing slower than this (m/s: 15 km/h)…
drag
readonlydrag:0.6=0.6
A held car's brakes drag at this share of their force, its drive forward cut.
heavy
readonlyheavy:3000=3000
…and no heavier than this (kg): a heavier car snaps it at once.
pull
readonlypull:-0.8=-0.8
Its driver pulling at least this hard in reverse (the throttle, −1 to 0)…
pullTicks
readonlypullTicks:60=60
…for this many ticks (a second) snaps the net.
reach
readonlyreach:2=2
The net hooks a car whose rear is this near the cruiser's nose (m)…
resetTicks
readonlyresetTicks:240=240
A net that snapped is ready again after this many ticks (four seconds).
tether
readonlytether:6=6
The net snaps once the two cars' centres are this much farther apart than their half lengths (m).