docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ComputeDesiredMove

    ComputeDesiredMove(Vector2)

    Determines how much to slide the rig due to input vector.

    Declaration
    protected virtual Vector3 ComputeDesiredMove(Vector2 input)
    Parameters
    Type Name Description
    Vector2 input

    Input vector, such as from a thumbstick.

    Returns
    Type Description
    Vector3

    Returns the translation amount in world space to move the rig.

    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)