Dynamic Water Physics 2
Search Results for

    Show / Hide Table of Contents

    Struct ShipInputStates

    Container for all ship input states. Stores current values for all ship controls including throttle, steering, thrusters, and special inputs.

    Namespace: NWH.DWP2.ShipController
    Assembly: NWH.DWP2.dll
    Syntax
    [Serializable]
    public struct ShipInputStates

    Fields

    | Edit this page View Source

    anchor

    Anchor drop/weigh toggle state.

    Declaration
    public bool anchor
    Field Value
    Type Description
    bool
    | Edit this page View Source

    bowThruster

    Bow thruster input from -1 to 1.

    Declaration
    [Range(-1, 1)]
    public float bowThruster
    Field Value
    Type Description
    float
    | Edit this page View Source

    changeCamera

    Change camera input for demo scenes.

    Declaration
    public bool changeCamera
    Field Value
    Type Description
    bool
    | Edit this page View Source

    changeShip

    Change ship input for demo scenes.

    Declaration
    public bool changeShip
    Field Value
    Type Description
    bool
    | Edit this page View Source

    engineStartStop

    Engine start/stop toggle state.

    Declaration
    public bool engineStartStop
    Field Value
    Type Description
    bool
    | Edit this page View Source

    rotateSail

    Sail rotation input for sailing vessels.

    Declaration
    [Range(-1, 1)]
    public float rotateSail
    Field Value
    Type Description
    float
    | Edit this page View Source

    steering

    Steering input from -1 (port/left) to 1 (starboard/right).

    Declaration
    [Range(-1, 1)]
    public float steering
    Field Value
    Type Description
    float
    | Edit this page View Source

    sternThruster

    Stern thruster input from -1 to 1.

    Declaration
    [Range(-1, 1)]
    public float sternThruster
    Field Value
    Type Description
    float
    | Edit this page View Source

    submarineDepth

    Submarine depth control from -1 (surface) to 1 (dive). Positive values add ballast (sink), negative reduce it (surface).

    Declaration
    [Range(-1, 1)]
    public float submarineDepth
    Field Value
    Type Description
    float
    | Edit this page View Source

    throttle

    Primary throttle from -1 (full reverse) to 1 (full forward).

    Declaration
    [Range(-1, 1)]
    public float throttle
    Field Value
    Type Description
    float
    | Edit this page View Source

    throttle2

    Secondary throttle for independent engine control.

    Declaration
    [Range(-1, 1)]
    public float throttle2
    Field Value
    Type Description
    float
    | Edit this page View Source

    throttle3

    Tertiary throttle for independent engine control.

    Declaration
    [Range(-1, 1)]
    public float throttle3
    Field Value
    Type Description
    float
    | Edit this page View Source

    throttle4

    Quaternary throttle for independent engine control.

    Declaration
    [Range(-1, 1)]
    public float throttle4
    Field Value
    Type Description
    float

    Methods

    | Edit this page View Source

    Reset()

    Resets all input states to default values.

    Declaration
    public void Reset()
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics