Skip to content

five-on-it / packages/sim/src/boat / BOAT

Variable: BOAT ​

const BOAT: object

Defined in: packages/sim/src/boat.ts:48

The numbers every boat shares.

Type Declaration ​

floatAcross ​

readonly floatAcross: 0.6 = 0.6

Where the float points are across and along the hull, as shares of its half width and half length.

floatAlong ​

readonly floatAlong: 0.65 = 0.65

floatOver ​

readonly floatOver: 0.2 = 0.2

How far up the hull the water's push grows (m past its whole height): a hull under water is no more buoyant than its volume.

floodSeconds ​

readonly floodSeconds: 8 = 8

How long a wrecked boat takes to flood (s).

heaveDamping ​

readonly heaveDamping: 0.6 = 0.6

The share of critical damping of the heave (and of the pitch and roll that come of it).

maxLean ​

readonly maxLean: 0.3 = 0.3

The most a boat leans into a turn (rad).

moorGrip ​

readonly moorGrip: 0.3 = 0.3

…with a pull of at most this share of its weight: a shove harder moves it.

moorReturn ​

readonly moorReturn: 0.1 = 0.1

A moored boat is brought this share of its way back to its mooring each tick…

moorSpeed ​

readonly moorSpeed: 2 = 2

A boat moored holds below this speed through the water (m/s): one left running coasts on until it is slower.

planeDrag ​

readonly planeDrag: 0.45 = 0.45

The share of its drag along itself a planing hull sheds.

planeLift ​

readonly planeLift: 0.25 = 0.25

planePitch ​

readonly planePitch: 0.07 = 0.07

How far a planing hull lifts its bow (rad), and what share of its weight the planing carries.

propeller ​

readonly propeller: 0.85 = 0.85

Where the propeller is along the hull, as a share of its half length astern.

rudderResponse ​

readonly rudderResponse: 2.5 = 2.5

How fast the yaw follows the rudder (1/s).

rudderSpeed ​

readonly rudderSpeed: 0.3 = 0.3

The speed through the water at which the rudder has its whole say, as a share of the top speed.

strokeSwing ​

readonly strokeSwing: 0.8 = 0.8

How much a rowed boat's push swings with its stroke: from 1 − this to 1 + this.

wash ​

readonly wash: 0.35 = 0.35

The propeller's wash over the rudder at full throttle, as a share of the top speed.