docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Property movementSpeedVariancePercentage

    movementSpeedVariancePercentage

    Adjust movement speed based on distance from the target using a tolerance percentage. 0% for constant speed. For example, with a variance of 25% (0.25), and a speed of 6, the upper bound is 7.5, which is reached as the target is approached. If the target is far from the object, the speed will trend toward the lower bound, which would be 4.5 in this case.

    Declaration
    public float movementSpeedVariancePercentage { get; set; }
    Property Value
    Type Description
    float
    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)