Skip to content

five-on-it / packages/sim/src/drag / DRAG

Variable: DRAG ​

const DRAG: object

Defined in: packages/sim/src/drag.ts:28

The numbers of dragging.

Type Declaration ​

gap ​

readonly gap: 1.4 = 1.4

The body trails this far behind the dragger's centre (m): a rope's length, past its feet.

pace ​

readonly pace: 0.55 = 0.55

The dragger walks at this share of its walking speed.

pull ​

readonly pull: 9 = 9

How fast the body closes on where it should lie (per second of the gap left).

snap ​

readonly snap: 3.5 = 3.5

Farther than this from the dragger, the body is let go (m): caught on something.

speed ​

readonly speed: 4 = 4

The fastest the body is pulled (m/s).