NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Struct VehicleController.MultiplayerState

    Data structure containing all vehicle state information needed for network synchronization. Optimized for minimal network bandwidth usage.

    Namespace: NWH.VehiclePhysics2
    Assembly: NWH.VehiclePhysics2.dll
    Syntax
    public struct VehicleController.MultiplayerState

    Fields

    boost

    Boost activation state

    Declaration
    public bool boost
    Field Value
    Type Description
    bool

    clutch

    Clutch input value (0 to 1, 1 = fully pressed)

    Declaration
    public float clutch
    Field Value
    Type Description
    float

    cruiseControl

    Cruise control toggle request

    Declaration
    public bool cruiseControl
    Field Value
    Type Description
    bool

    engineAngularVelocity

    Current engine RPM expressed as angular velocity (rad/s)

    Declaration
    public float engineAngularVelocity
    Field Value
    Type Description
    float

    engineStartStop

    Engine start/stop toggle request

    Declaration
    public bool engineStartStop
    Field Value
    Type Description
    bool

    flipOver

    Vehicle flip-over recovery request

    Declaration
    public bool flipOver
    Field Value
    Type Description
    bool

    handbrake

    Handbrake input value (0 to 1)

    Declaration
    public float handbrake
    Field Value
    Type Description
    float

    horn

    Horn activation state

    Declaration
    public bool horn
    Field Value
    Type Description
    bool

    lightState

    Bit-packed state of all vehicle lights (headlights, indicators, etc.)

    Declaration
    public int lightState
    Field Value
    Type Description
    int

    shiftDown

    Shift down request flag

    Declaration
    public bool shiftDown
    Field Value
    Type Description
    bool

    shiftInto

    Target gear index for direct gear selection (-1 = reverse, 0 = neutral)

    Declaration
    public int shiftInto
    Field Value
    Type Description
    int

    shiftUp

    Shift up request flag

    Declaration
    public bool shiftUp
    Field Value
    Type Description
    bool

    steering

    Steering input value (-1 to 1, negative = left)

    Declaration
    public float steering
    Field Value
    Type Description
    float

    throttle

    Throttle input value (0 to 1)

    Declaration
    public float throttle
    Field Value
    Type Description
    float

    trailerAttachDetach

    Trailer attach/detach toggle request

    Declaration
    public bool trailerAttachDetach
    Field Value
    Type Description
    bool
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics