You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: com.unity.netcode.gameobjects/Runtime/Components/NetworkTransform.cs
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -960,12 +960,14 @@ public enum InterpolationTypes
960
960
Lerp,
961
961
/// <summary>
962
962
/// Lerp, Extrapolate, and Blend
963
-
/// Uses a 3 to 4 phase lerp towards the target, extrapolate towards the target, blend the two results, and (optionally) smooth the final value.<br />
963
+
/// Uses a 3 to 5 phase lerp towards the target, extrapolate towards the target, blend the two results, and (optionally) smooth the final value.<br />
964
964
/// - The first phase lerps towards the current tick state update being processed.<br />
965
965
/// - The second phase lerps unclamped (extrapolates) towards the current tick state update and will extrapolate this value up to a calculated maximum delta time.
966
966
/// The maximum delta time is the tick latency, calculated from an estimated RTT each time the network time is updated, plus the <see cref="InterpolationBufferTickOffset"/>. The sum is multiplied by the tick frequency (one over tick rate).<br />
967
967
/// - The third phase lerps between the results of the first and second phases by the current delta time.<br />
968
-
/// - The fourth phase (optional) performs a 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.
968
+
/// - The fourth and fifth phase (optional) performs:
969
+
/// -- A 1/3rd lerp towards the target from the current respective transform value.
970
+
/// -- A lerp smoothing where the result of the 1/3rd lerp operation is lerped towards the result of the third phase at a rate of delta time divided by the respective max interpolation time.
969
971
/// </summary>
970
972
/// <remarks>
971
973
/// Note: This is slightly more computationally expensive than the <see cref="Lerp"/> approach.<br />
@@ -980,11 +982,13 @@ public enum InterpolationTypes
980
982
/// </remarks>
981
983
LerpExtrapolateBlend,
982
984
/// <summary>
983
-
/// Uses a 3 to 4 phase smooth dampen towards the target, smooth dampen towards the next target, blend the two results, and (optionally) smooth the final value.<br />
985
+
/// Uses a 3 to 5 phase smooth dampen towards the target, smooth dampen towards the next target, blend the two results, and (optionally) smooth the final value.<br />
984
986
/// - The first phase smooth dampens towards the current tick state update being processed.<br />
985
987
/// - The second phase smooth dampens towards the next tick state's target. If there is no next tick state update, then the target predicted value is the current state target that smooth dampens 1 frame (average delta time) ahead.<br />
986
988
/// - The third phase lerps between the results of the first and second phases by the current delta time.<br />
987
-
/// - The fourth phase (optional) performs a 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.
989
+
/// - The fourth and fifth phase (optional) performs:
990
+
/// -- A 1/3rd lerp towards the target from the current respective transform value.
991
+
/// -- A lerp smoothing where the result of the 1/3rd lerp operation is lerped towards the result of the third phase at a rate of delta time divided by the respective max interpolation time.
988
992
/// </summary>
989
993
/// <remarks>
990
994
/// Note: Smooth dampening is computationally more expensive than the <see cref="LerpExtrapolateBlend"/> and <see cref="Lerp"/> approaches.<br />
0 commit comments