docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SlerpWithReferenceUp

    SlerpWithReferenceUp(Quaternion, Quaternion, float, Vector3)

    This is a slerp that mimics a camera operator's movement in that it chooses a path that avoids the lower hemisphere, as defined by the up param

    Declaration
    public static Quaternion SlerpWithReferenceUp(Quaternion qA, Quaternion qB, float t, Vector3 up)
    Parameters
    Type Name Description
    Quaternion qA

    First direction

    Quaternion qB

    Second direction

    float t

    Interpolation amount

    Vector3 up

    Defines the up direction. Must have a length of 1.

    Returns
    Type Description
    Quaternion

    Interpolated quaternion

    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)