docs.unity3d.com
Search Results for

    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>.m_InterpStartValue
    BufferedLinearInterpolator<Quaternion>.m_CurrentInterpValue
    BufferedLinearInterpolator<Quaternion>.m_InterpEndValue
    BufferedLinearInterpolator<Quaternion>.m_Buffer
    BufferedLinearInterpolator<Quaternion>.Clear()
    BufferedLinearInterpolator<Quaternion>.ResetTo(Quaternion, double)
    BufferedLinearInterpolator<Quaternion>.Update(float, NetworkTime)
    BufferedLinearInterpolator<Quaternion>.Update(float, double, double)
    BufferedLinearInterpolator<Quaternion>.AddMeasurement(Quaternion, double)
    BufferedLinearInterpolator<Quaternion>.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 BufferedLinearInterpolatorQuaternion : BufferedLinearInterpolator<Quaternion>
    Remarks

    This is a buffered linear interpolator for a Quaternion type value

    Fields

    IsSlerp

    Use Slerp(Quaternion, Quaternion, float) when true. Use Lerp(Quaternion, Quaternion, float) when false

    Declaration
    public bool IsSlerp
    Field Value
    Type Description
    bool
    Remarks

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

    Methods

    Interpolate(Quaternion, Quaternion, float)

    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

    The start value (min)

    Quaternion end

    The end value (max)

    float time

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

    Returns
    Type Description
    Quaternion

    The interpolated value

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

    InterpolateUnclamped(Quaternion, Quaternion, float)

    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

    The start value (min)

    Quaternion end

    The end value (max)

    float time

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

    Returns
    Type Description
    Quaternion

    The interpolated value

    Overrides
    BufferedLinearInterpolator<Quaternion>.InterpolateUnclamped(Quaternion, Quaternion, float)

    OnConvertTransformSpace(Transform, bool)

    Declaration
    protected override void OnConvertTransformSpace(Transform transform, bool inLocalSpace)
    Parameters
    Type Name Description
    Transform transform
    bool inLocalSpace
    Overrides
    BufferedLinearInterpolator<Quaternion>.OnConvertTransformSpace(Transform, bool)
    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)