Skip to content

five-on-it / packages/sim/src/water / WATER

Variable: WATER ​

const WATER: object

Defined in: packages/sim/src/water.ts:24

The numbers of the water.

Type Declaration ​

climbOut ​

readonly climbOut: 0.6 = 0.6

How far over its feet a swimmer climbs out onto the shore or a shelf ahead (m).

drag ​

readonly drag: 2 = 2

How much the water slows a car in it (linear damping).

float ​

readonly float: 0.35 = 0.35

How far under the surface a swimmer's middle floats (m): the head out.

flood ​

readonly flood: 0.6 = 0.6

How deep a car's middle sinks before it floods (m).

swim ​

readonly swim: 1.3 = 1.3

How deep a person swims (m): over the chest.

swimSpeed ​

readonly swimSpeed: 1.6 = 1.6

How fast a swimmer moves (m/s).

wade ​

readonly wade: 0.45 = WADE_DEPTH

How deep over the feet a person wades (m): over the knees.

wadePace ​

readonly wadePace: 0.5 = 0.5

How much of its pace a wader keeps.