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 Sourceanchor
Anchor drop/weigh toggle state.
Declaration
public bool anchor
Field Value
| Type | Description |
|---|---|
| bool |
bowThruster
Bow thruster input from -1 to 1.
Declaration
[Range(-1, 1)]
public float bowThruster
Field Value
| Type | Description |
|---|---|
| float |
changeCamera
Change camera input for demo scenes.
Declaration
public bool changeCamera
Field Value
| Type | Description |
|---|---|
| bool |
changeShip
Change ship input for demo scenes.
Declaration
public bool changeShip
Field Value
| Type | Description |
|---|---|
| bool |
engineStartStop
Engine start/stop toggle state.
Declaration
public bool engineStartStop
Field Value
| Type | Description |
|---|---|
| bool |
rotateSail
Sail rotation input for sailing vessels.
Declaration
[Range(-1, 1)]
public float rotateSail
Field Value
| Type | Description |
|---|---|
| float |
steering
Steering input from -1 (port/left) to 1 (starboard/right).
Declaration
[Range(-1, 1)]
public float steering
Field Value
| Type | Description |
|---|---|
| float |
sternThruster
Stern thruster input from -1 to 1.
Declaration
[Range(-1, 1)]
public float sternThruster
Field Value
| Type | Description |
|---|---|
| float |
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 |
throttle
Primary throttle from -1 (full reverse) to 1 (full forward).
Declaration
[Range(-1, 1)]
public float throttle
Field Value
| Type | Description |
|---|---|
| float |
throttle2
Secondary throttle for independent engine control.
Declaration
[Range(-1, 1)]
public float throttle2
Field Value
| Type | Description |
|---|---|
| float |
throttle3
Tertiary throttle for independent engine control.
Declaration
[Range(-1, 1)]
public float throttle3
Field Value
| Type | Description |
|---|---|
| float |
throttle4
Quaternary throttle for independent engine control.
Declaration
[Range(-1, 1)]
public float throttle4
Field Value
| Type | Description |
|---|---|
| float |
Methods
| Edit this page View SourceReset()
Resets all input states to default values.
Declaration
public void Reset()