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()
    Namespace: Unity.Netcode
    Syntax
    public class BufferedLinearInterpolatorQuaternion : BufferedLinearInterpolator<Quaternion>
    Remarks

    This is a buffered linear interpolator for a Quaternion type value

    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
    Terms of use
    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