docs.unity3d.com
    Show / Hide Table of Contents

    Class QuaternionTweenableVariable

    Bindable variable that can tween over time towards a target Quaternion value. Uses an synchronous implementation so the tween does not use the job system.

    Inheritance
    Object
    BindableVariableBase<Quaternion>
    BindableVariable<Quaternion>
    TweenableVariableBase<Quaternion>
    TweenableVariableSynchronousBase<Quaternion>
    QuaternionTweenableVariable
    SmartFollowQuaternionTweenableVariable
    Inherited Members
    TweenableVariableSynchronousBase<Quaternion>.ExecuteTween(Quaternion, Quaternion, Single, Boolean)
    TweenableVariableBase<Quaternion>.k_NearlyOne
    TweenableVariableBase<Quaternion>.animationCurve
    TweenableVariableBase<Quaternion>.target
    TweenableVariableBase<Quaternion>.initialValue
    TweenableVariableBase<Quaternion>.HandleTween(Single)
    TweenableVariableBase<Quaternion>.StartAutoTween(Single)
    TweenableVariableBase<Quaternion>.PlaySequence(Quaternion, Quaternion, Single, Action)
    TweenableVariableBase<Quaternion>.OnAnimationCurveChanged(AnimationCurve)
    TweenableVariableBase<Quaternion>.OnTargetChanged(Quaternion)
    TweenableVariableBase<Quaternion>.PreprocessTween()
    BindableVariable<Quaternion>.ValueEquals(Quaternion)
    BindableVariableBase<Quaternion>.SetValueWithoutNotify(Quaternion)
    BindableVariableBase<Quaternion>.Subscribe(Action<Quaternion>)
    BindableVariableBase<Quaternion>.SubscribeAndUpdate(Action<Quaternion>)
    BindableVariableBase<Quaternion>.Unsubscribe(Action<Quaternion>)
    BindableVariableBase<Quaternion>.BroadcastValue()
    BindableVariableBase<Quaternion>.Task(Func<Quaternion, Boolean>, CancellationToken)
    BindableVariableBase<Quaternion>.Task(Quaternion, CancellationToken)
    BindableVariableBase<Quaternion>.Value
    BindableVariableBase<Quaternion>.BindingCount
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Utilities.Tweenables.Primitives
    Syntax
    public class QuaternionTweenableVariable : TweenableVariableSynchronousBase<Quaternion>, IReadOnlyBindableVariable<Quaternion>

    Properties

    angleEqualityThreshold

    Angle threshold in degrees, under which two quaternions are considered equal.

    Declaration
    public float angleEqualityThreshold { get; set; }
    Property Value
    Type Description
    Single

    Methods

    IsNearlyEqual(Quaternion, Quaternion)

    Evaluates if the value is nearly equal to target.

    Declaration
    protected override bool IsNearlyEqual(Quaternion startValue, Quaternion targetValue)
    Parameters
    Type Name Description
    Quaternion startValue
    Quaternion targetValue
    Returns
    Type Description
    Boolean

    Returns true if the values are nearly equal.

    Overrides
    UnityEngine.XR.Interaction.Toolkit.Utilities.Tweenables.TweenableVariableSynchronousBase<UnityEngine.Quaternion>.IsNearlyEqual(UnityEngine.Quaternion, UnityEngine.Quaternion)

    Lerp(Quaternion, Quaternion, Single)

    Function used to interpolate between a tween's start value and target value.

    Declaration
    protected override Quaternion Lerp(Quaternion from, Quaternion to, float t)
    Parameters
    Type Name Description
    Quaternion from
    Quaternion to
    Single t

    Value between 0-1 used to evaluate the output between the from and to values.

    Returns
    Type Description
    Quaternion

    Returns the interpolation from from to to.

    Overrides
    UnityEngine.XR.Interaction.Toolkit.Utilities.Tweenables.TweenableVariableSynchronousBase<UnityEngine.Quaternion>.Lerp(UnityEngine.Quaternion, UnityEngine.Quaternion, System.Single)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023