docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CatPattern

    CatPattern(float, float, float, float, float)

    Provide an orientation that follows rotation on two axis.

    Declaration
    public static Quaternion CatPattern(float t, float omegaYaw = 6.2831855, float yawPhase = 0, float omegaPitch = 31.415928, float pitchAmplitude = 0.08726647)
    Parameters
    Type Name Description
    float t

    Time elapsed since the beginning in second.

    float omegaYaw

    Angle per second arround the Y axis.

    float yawPhase

    Offset at starting time in seconds.

    float omegaPitch

    Angle per second arround the X axis.

    float pitchAmplitude

    Scale on the final anagle.

    Returns
    Type Description
    Quaternion

    An orientation pointing outside form the center represented by a quaternion.

    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)