Watercraft parameters - Outerra/anteworld GitHub Wiki

Watercraft parameters

Used for boats/ships and amphibious vehicles only.

type property description default
float4 Cx drag coefficients for model-space directions and angular damping mod coef x: sidewise drag coefficient y: forward drag coefficient z: vertical drag coefficient w: relative angular coefficient (adjusts the computed angular damping) (JS / Lua) {x:0.0,y:0.0,z:0.0} (C++) {0.f ,0.f ,0.f}
float hydro_offset distance from center of mass along z where hydrostatic force acts [m] 1
float hydro_uplift front uplift coefficient, N per m/s when submerged up to h1 0
float hydro_w width of hydro volume (0 - use bbox, <0 shrink bbox values) 0
float hydro_wake (JS / Lua) hydro_wake_wmul(C++) wake width multiplier 1
float hydro_l length of hydro volume (0 - use bbox, <0 shrink bbox values) 0
float hydro_h1 height of the triangular prism part of the boat underwater [m] 0
float hydro_h2 height of the box part of the boat [m] 0
float hydro_volcoef closed volume coefficient (0..1) Tells how much of the volume is hollow 0

Note: if hydro_volcoef is not specified or is 0, the hydrostatic forces are not computed, but the speed loss from drag still is.

Example drag coefficients in model-space dimensions:

  • boats - x:1.2, y:0.1, z:1.2, w:0.9
  • vehicles - x:1.2, y:0.4, z:1.2, w:0.9

You can find more about drag coefficients on http://en.wikipedia.org/wiki/Drag_coefficient

Hydro params