docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct DefaultInputAxisDriver

    This object drives an input axis.
    It reads raw input, applies it to the axis value, with acceleration and deceleration.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Cinemachine
    Assembly: solution.dll
    Syntax
    [Serializable]
    public struct DefaultInputAxisDriver

    Fields

    Name Description
    AccelTime

    The amount of time in seconds it takes to accelerate to MaxSpeed with the supplied Axis at its maximum value

    DecelTime

    The amount of time in seconds it takes to decelerate the axis to zero if the supplied axis is in a neutral position

    Properties

    Name Description
    Default

    Default value

    Methods

    Name Description
    ProcessInput(ref InputAxis, float, float)

    Apply the input value to the axis value

    Reset(ref InputAxis)

    Reset an axis to at-rest state

    Validate()

    Call from OnValidate: Make sure the fields are sensible

    In This Article
    Back to top
    Copyright © 2023 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)