docs.unity3d.com
    Show / Hide Table of Contents

    Class BufferedLinearInterpolatorQuaternion

    Solves for incoming values that are jittered Partially solves for message loss. Unclamped lerping helps hide this, but not completely

    Inheritance
    Object
    BufferedLinearInterpolator<Quaternion>
    BufferedLinearInterpolatorQuaternion
    Inherited Members
    BufferedLinearInterpolator<Quaternion>.MaximumInterpolationTime
    BufferedLinearInterpolator<Quaternion>.Clear()
    BufferedLinearInterpolator<Quaternion>.ResetTo(Quaternion, Double)
    BufferedLinearInterpolator<Quaternion>.Update(Single, NetworkTime)
    BufferedLinearInterpolator<Quaternion>.Update(Single, Double, Double)
    BufferedLinearInterpolator<Quaternion>.AddMeasurement(Quaternion, Double)
    BufferedLinearInterpolator<Quaternion>.GetInterpolatedValue()
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Netcode
    Syntax
    public class BufferedLinearInterpolatorQuaternion : BufferedLinearInterpolator<Quaternion>
    Remarks

    This is a buffered linear interpolator for a Quaternion type value

    Fields

    IsSlerp

    Use Slerp when . Use Lerp when

    Declaration
    public bool IsSlerp
    Field Value
    Type Description
    Boolean
    Remarks

    When using half precision (due to the imprecision) using Lerp is less processor intensive (i.e. precision is already "imprecise"). When using full precision (to maintain precision) using Slerp is more processor intensive yet yields more precise results.

    Methods

    Interpolate(Quaternion, Quaternion, Single)

    Method to override and adapted to the generic type. This assumes interpolation for that value will be clamped.

    Declaration
    protected override Quaternion Interpolate(Quaternion start, Quaternion end, float time)
    Parameters
    Type Name Description
    Quaternion start
    Quaternion end
    Single time

    The time value used to interpolate between start and end values (pos)

    Returns
    Type Description
    Quaternion

    The interpolated value

    Overrides
    Unity.Netcode.BufferedLinearInterpolator<UnityEngine.Quaternion>.Interpolate(UnityEngine.Quaternion, UnityEngine.Quaternion, System.Single)

    InterpolateUnclamped(Quaternion, Quaternion, Single)

    Method to override and adapted to the generic type. This assumes interpolation for that value will not be clamped.

    Declaration
    protected override Quaternion InterpolateUnclamped(Quaternion start, Quaternion end, float time)
    Parameters
    Type Name Description
    Quaternion start
    Quaternion end
    Single time

    The time value used to interpolate between start and end values (pos)

    Returns
    Type Description
    Quaternion

    The interpolated value

    Overrides
    Unity.Netcode.BufferedLinearInterpolator<UnityEngine.Quaternion>.InterpolateUnclamped(UnityEngine.Quaternion, UnityEngine.Quaternion, System.Single)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 26 October 2023