docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsAboveDivergenceThreshold

    IsAboveDivergenceThreshold(Transform, float, bool)

    Check if gaze direction is above the divergence threshold

    Declaration
    bool IsAboveDivergenceThreshold(Transform transformToTest, float divergenceThreshold, bool disregardTemporalStability = true)
    Parameters
    Type Name Description
    Transform transformToTest

    The transform representing gaze direction

    float divergenceThreshold

    The threshold angle value to test

    bool disregardTemporalStability

    Whether to disregard temporal stability

    Returns
    Type Description
    bool

    True if the angle between the gaze and target is above the divergence threshold

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