docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method EulerZYX

    EulerZYX(quaternion)

    Returns the Euler angle representation of the quaternion following the ZYX rotation order. All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin.

    Declaration
    public static float3 EulerZYX(quaternion q)
    Parameters
    Type Name Description
    quaternion q

    The quaternion to convert to Euler angles.

    Returns
    Type Description
    float3

    The Euler angle representation of the quaternion in ZYX order.

    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)