docs.unity3d.com
    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<Single>
    BufferedLinearInterpolatorFloat
    Inherited Members
    BufferedLinearInterpolator<Single>.MaximumInterpolationTime
    BufferedLinearInterpolator<Single>.Clear()
    BufferedLinearInterpolator<Single>.ResetTo(Single, Double)
    BufferedLinearInterpolator<Single>.Update(Single, NetworkTime)
    BufferedLinearInterpolator<Single>.Update(Single, Double, Double)
    BufferedLinearInterpolator<Single>.AddMeasurement(Single, Double)
    BufferedLinearInterpolator<Single>.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 BufferedLinearInterpolatorFloat : BufferedLinearInterpolator<float>
    Remarks

    This is a buffered linear interpolator for a Single type value

    Methods

    Interpolate(Single, Single, Single)

    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
    Single start
    Single end
    Single time

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

    Returns
    Type Description
    Single

    The interpolated value

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

    InterpolateUnclamped(Single, Single, Single)

    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
    Single start
    Single end
    Single time

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

    Returns
    Type Description
    Single

    The interpolated value

    Overrides
    Unity.Netcode.BufferedLinearInterpolator<System.Single>.InterpolateUnclamped(System.Single, System.Single, 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