five-on-it / packages/sim/src/boat / BOAT
Variable: BOAT
constBOAT:object
Defined in: packages/sim/src/boat.ts:48
The numbers every boat shares.
Type Declaration
floatAcross
readonlyfloatAcross:0.6=0.6
Where the float points are across and along the hull, as shares of its half width and half length.
floatAlong
readonlyfloatAlong:0.65=0.65
floatOver
readonlyfloatOver: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
readonlyfloodSeconds:8=8
How long a wrecked boat takes to flood (s).
heaveDamping
readonlyheaveDamping:0.6=0.6
The share of critical damping of the heave (and of the pitch and roll that come of it).
maxLean
readonlymaxLean:0.3=0.3
The most a boat leans into a turn (rad).
moorGrip
readonlymoorGrip:0.3=0.3
…with a pull of at most this share of its weight: a shove harder moves it.
moorReturn
readonlymoorReturn:0.1=0.1
A moored boat is brought this share of its way back to its mooring each tick…
moorSpeed
readonlymoorSpeed:2=2
A boat moored holds below this speed through the water (m/s): one left running coasts on until it is slower.
planeDrag
readonlyplaneDrag:0.45=0.45
The share of its drag along itself a planing hull sheds.
planeLift
readonlyplaneLift:0.25=0.25
planePitch
readonlyplanePitch:0.07=0.07
How far a planing hull lifts its bow (rad), and what share of its weight the planing carries.
propeller
readonlypropeller:0.85=0.85
Where the propeller is along the hull, as a share of its half length astern.
rudderResponse
readonlyrudderResponse:2.5=2.5
How fast the yaw follows the rudder (1/s).
rudderSpeed
readonlyrudderSpeed: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
readonlystrokeSwing:0.8=0.8
How much a rowed boat's push swings with its stroke: from 1 − this to 1 + this.
wash
readonlywash:0.35=0.35
The propeller's wash over the rudder at full throttle, as a share of the top speed.