docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BufferedLinearInterpolatorFloat

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

    Inheritance
    object
    BufferedLinearInterpolator<float>
    BufferedLinearInterpolatorFloat
    Inherited Members
    BufferedLinearInterpolator<float>.MaximumInterpolationTime
    BufferedLinearInterpolator<float>.m_InterpStartValue
    BufferedLinearInterpolator<float>.m_CurrentInterpValue
    BufferedLinearInterpolator<float>.m_InterpEndValue
    BufferedLinearInterpolator<float>.m_Buffer
    BufferedLinearInterpolator<float>.OnConvertTransformSpace(Transform, bool)
    BufferedLinearInterpolator<float>.Clear()
    BufferedLinearInterpolator<float>.ResetTo(float, double)
    BufferedLinearInterpolator<float>.Update(float, NetworkTime)
    BufferedLinearInterpolator<float>.Update(float, double, double)
    BufferedLinearInterpolator<float>.AddMeasurement(float, double)
    BufferedLinearInterpolator<float>.GetInterpolatedValue()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Netcode
    Assembly: Unity.Netcode.Runtime.dll
    Syntax
    public class BufferedLinearInterpolatorFloat : BufferedLinearInterpolator<float>
    Remarks

    This is a buffered linear interpolator for a float type value

    Methods

    Interpolate(float, float, float)

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

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

    The start value (min)

    float end

    The end value (max)

    float time

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

    Returns
    Type Description
    float

    The interpolated value

    Overrides
    BufferedLinearInterpolator<float>.Interpolate(float, float, float)

    InterpolateUnclamped(float, float, float)

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

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

    The start value (min)

    float end

    The end value (max)

    float time

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

    Returns
    Type Description
    float

    The interpolated value

    Overrides
    BufferedLinearInterpolator<float>.InterpolateUnclamped(float, float, float)
    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)