docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct VehicleControl

    Additional functionality for the Vehicle. Powertrain, drivetrain, steering and in general everything related to controling the vehicle movement and behavior.

    Implements
    IComponentData
    IQueryTypeParameter
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Vehicles
    Assembly: com.unity.vehicles.dll
    Syntax
    [Serializable]
    public struct VehicleControl : IComponentData, IQueryTypeParameter

    Fields

    EngineStartStopInput

    Engine start / stop input.

    Declaration
    public bool EngineStartStopInput
    Field Value
    Type Description
    bool

    HandbrakeInput

    Handbrake input without any processing.

    Declaration
    public float HandbrakeInput
    Field Value
    Type Description
    float

    RawBrakeInput

    Brake input without any processing.

    Declaration
    public float RawBrakeInput
    Field Value
    Type Description
    float

    RawSteeringInput

    Steering input without any processing.

    Declaration
    public float RawSteeringInput
    Field Value
    Type Description
    float

    RawThrottleInput

    Throttle input without any processing.

    Declaration
    public float RawThrottleInput
    Field Value
    Type Description
    float

    ShiftDownInput

    Transmission shift down input.

    Declaration
    public bool ShiftDownInput
    Field Value
    Type Description
    bool

    ShiftUpInput

    Transmission shift up input.

    Declaration
    public bool ShiftUpInput
    Field Value
    Type Description
    bool

    Implements

    IComponentData
    IQueryTypeParameter
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)