Enum NetworkTransform.InterpolationTypes
The different interpolation types used with BufferedLinearInterpolator<T> to help smooth interpolation results.
Interpolation types can be changed during runtime.
Assembly: Unity.Netcode.Runtime.dll
public enum NetworkTransform.InterpolationTypes
Fields
Name |
Description |
LegacyLerp |
Legacy Lerp (original NGO lerping model)
Uses a 1 to 2 phase lerp approach where:
- The first phase lerps from the previous state update value to the next state update value.
- The second phase (optional) performs lerp smoothing where the current respective transform value is lerped towards the result of the first phase at a rate of delta time divided by the respective max interpolation time.
!!! NOTE !!!
The legacy lerp interpolation type does not use TickLatency to determine the buffer depth. This is to preserve the same interpolation results when lerp smoothing is enabled.
|
Lerp |
Lerp (maintains time to target when InterpolationBufferTickOffset under higher TickLatency conditions)
Uses a 1 to 2 phase interpolation approach where:
- The first phase lerps from the previous state update value to the next state update value.
- The second phase (optional) performs lerp smoothing where the current respective transform value is lerped towards the result of the first phase at a rate of 1.0 minus the respective maximum interpolation time.
|
SmoothDampening |
Smooth Dampening (maintains time to target when InterpolationBufferTickOffset under higher TickLatency conditions)
Uses a 1 to 2 phase smooth dampening approach where:
- The first phase smooth dampens towards the current tick state update being processed by the accumulated delta time relative to the time to target.
- The second phase (optional) performs lerp smoothing where the current respective transform value is lerped towards the result of the third phase at a rate of delta time divided by the respective max interpolation time.
|