Tidewater: Oceans, Lakes, Rivers, Waterfalls, Swimming and Splashes Water Kit
README.md
drives
How each class of vehicle moves, one handler per catalogue class, each with setup (every peer, after the rig is built), step(ctx, intent, dt) (the owning peer, every physics step, with the driver's intent), idle (owner, nobody driving), telemetry (speed, rpm, gear, throttle, load, skid for the driving contract) and animate (every peer: rotors, propeller, fan, oars, turret).
car: the engine's VehicleController, driven throughsetIntent(throttle, reverse from the brake at a stop, steering, handbrake drift, boost); direct-drive kinds get a gearbox worked out from road speed for the gauges and engine voice.tank: VehicleController on all road wheels plus skid steering about the up axis, so it turns on the spot; the turret follows the camera.hover: four air springs over ground or water (Physics.raycastandPhysics.water), thrust, and sideways grip the handbrake lets go of for a slide.boat: floats onBuoyancy; the propeller or oars push only while in the water, toward the speed the throttle asks; in water shallower than the hull they push only back toward deeper water; keel, a rudder that eases off at full speed, a firm damped lean into the turn and trim hold (the water lifts a flat hull's bow at speed), a harder carve on the handbrake, planing for the speedboat, rowing strokes for the rowboat.plane:LiftSurfacewing, tail and fin give real lift and drag; a throttle lever; the stick sets a bank angle (up to 55 degrees) and a pitch rate, the rudder a yaw rate, with authority from airspeed; a coordinated turn that makes up the lift a bank takes away; hands off, it holds its height, or with the throttle below a third glides down and flares to land; no nose-up when too slow; nose-wheel steering and wheel brakes on the ground.heli: rotor lift along the body's up axis with height hold, collective on the throttle keys, tilt from the stick, yaw on the rudder, rotor spool-up.space: thrusters with gravity held off: thrust, strafe, climb and turn, banking into turns.
of(kind) returns the handler; rotate, axes, toWorld and waterAt are shared helpers. Called by the Vehicle component.