Search Results for

    Show / Hide Table of Contents

    Class Rotate

    A set of functionality to extend on Unity's rotation based methods.

    Inheritance
    System.Object
    Rotate
    Namespace: GDX.Mathematics
    Syntax
    [VisualScriptingCompatible((short)8)]
    public static class Rotate

    Methods

    | Improve this Doc View Source

    Towards(Quaternion, Quaternion, Single, Single)

    Create a quaternion based on a rotation from targetQuaternion to otherQuaternion.

    Declaration
    public static Quaternion Towards(Quaternion targetQuaternion, Quaternion otherQuaternion, float rotationRate, float elapsedTime)
    Parameters
    Type Name Description
    UnityEngine.Quaternion targetQuaternion

    The source UnityEngine.Quaternion.

    UnityEngine.Quaternion otherQuaternion

    The destination UnityEngine.Quaternion.

    System.Single rotationRate

    How fast should the rotation occur.

    System.Single elapsedTime

    How long has elapsed since the rotation started.

    Returns
    Type Description
    UnityEngine.Quaternion

    A rotational value.

    Exceptions
    Type Condition
    UnsupportedRuntimeException

    Not supported on DOTS Runtime.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Built on 2024-01-01 against 1f69a68.
    Generated by Dox+DocFX.