five-on-it / packages/sim/src/vehicle-classes / BoatDef
Interface: BoatDef
Defined in: packages/sim/src/vehicle-classes.ts:56
What makes a class a boat (boat.ts): it floats on six points of its hull's bottom instead of standing on wheels (a boat has no axles, axles: []), its propeller pushes only under water, a rudder turns it, its keel holds it against sliding sideways.
Properties
dragAcross
dragAcross:
number
Defined in: packages/sim/src/vehicle-classes.ts:67
Its drag across itself, the keel's (1/s): the share of its sideways slide it loses each second.
dragAlong
dragAlong:
number
Defined in: packages/sim/src/vehicle-classes.ts:64
Its drag along itself: a share of its speed (1/s) and of the square of it (1/m) lost each second, in the water.
dragQuadratic
dragQuadratic:
number
Defined in: packages/sim/src/vehicle-classes.ts:65
draught
draught:
number
Defined in: packages/sim/src/vehicle-classes.ts:60
How deep it sits at rest (m): from its keel (the chassis box's bottom) to the waterline.
lean
lean:
number
Defined in: packages/sim/src/vehicle-classes.ts:69
How far it leans into a turn: the roll it is pushed to per metre per second of speed times radian per second of turn (rad).
planing?
optionalplaning?:number
Defined in: packages/sim/src/vehicle-classes.ts:71
The speed from which it planes (m/s): its bow lifts and its drag falls; none for a displacement hull.
propulsion
propulsion:
BoatPropulsion
Defined in: packages/sim/src/vehicle-classes.ts:58
What drives it: an outboard engine, an inboard diesel, oars or pedals (what the client sounds and names).
stroke?
optionalstroke?:number
Defined in: packages/sim/src/vehicle-classes.ts:73
It is rowed: its push comes in strokes, stroke seconds apart, by the tick.
turnRate
turnRate:
number
Defined in: packages/sim/src/vehicle-classes.ts:62
How fast it turns at full rudder once it carries way (rad/s).