docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ConstrainYawPitchNormalized

    ConstrainYawPitchNormalized(Quaternion)

    Returns a normalized rotation that only contains the yaw and pitch components of the specified rotation

    Declaration
    public static Quaternion ConstrainYawPitchNormalized(this Quaternion rotation)
    Parameters
    Type Name Description
    Quaternion rotation

    The source rotation.

    Returns
    Type Description
    Quaternion

    A yaw- and pitch-only rotation that matches the input rotation's yaw and pitch.

    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)