Skip to content

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

Function: boatStep() ​

boatStep(sim, eid, body, vc, controls): void

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

One tick of a boat (see the module documentation), after the vehicle system has decided its controls: the flood, the buoyancy, the drag, the propeller, the rudder, the lean and the planing, the mooring. Leaves VehicleState.wheelContact 1 while it floats (some of its hull in the water), 0 out of it.

Parameters ​

sim ​

SimWorld

eid ​

number

body ​

RigidBody

vc ​

VehicleClass

controls ​

BoatControls

Returns ​

void