@@ -34,6 +34,19 @@ namespace TestProject.RuntimeTests
3434 [ TestFixture ( Interpolation . NoInterpolation , Precision . Half , NetworkTransform . AuthorityModes . Owner , NestedTickSynchronization . NormalSynchronize ) ]
3535 [ TestFixture ( Interpolation . NoInterpolation , Precision . Compressed , NetworkTransform . AuthorityModes . Server , NestedTickSynchronization . NormalSynchronize ) ]
3636 [ TestFixture ( Interpolation . NoInterpolation , Precision . Compressed , NetworkTransform . AuthorityModes . Owner , NestedTickSynchronization . NormalSynchronize ) ]
37+ // Smooth dampening interpolation pass
38+ [ TestFixture ( NetworkTransform . InterpolationTypes . SmoothDampening , Interpolation . Interpolation , Precision . Full , NetworkTransform . AuthorityModes . Server , NestedTickSynchronization . TickSynchronized ) ]
39+ [ TestFixture ( NetworkTransform . InterpolationTypes . SmoothDampening , Interpolation . Interpolation , Precision . Full , NetworkTransform . AuthorityModes . Owner , NestedTickSynchronization . TickSynchronized ) ]
40+ [ TestFixture ( NetworkTransform . InterpolationTypes . SmoothDampening , Interpolation . Interpolation , Precision . Half , NetworkTransform . AuthorityModes . Server , NestedTickSynchronization . TickSynchronized ) ]
41+ [ TestFixture ( NetworkTransform . InterpolationTypes . SmoothDampening , Interpolation . Interpolation , Precision . Half , NetworkTransform . AuthorityModes . Owner , NestedTickSynchronization . TickSynchronized ) ]
42+ [ TestFixture ( NetworkTransform . InterpolationTypes . SmoothDampening , Interpolation . Interpolation , Precision . Compressed , NetworkTransform . AuthorityModes . Server , NestedTickSynchronization . TickSynchronized ) ]
43+ [ TestFixture ( NetworkTransform . InterpolationTypes . SmoothDampening , Interpolation . Interpolation , Precision . Compressed , NetworkTransform . AuthorityModes . Owner , NestedTickSynchronization . TickSynchronized ) ]
44+ [ TestFixture ( NetworkTransform . InterpolationTypes . SmoothDampening , Interpolation . Interpolation , Precision . Full , NetworkTransform . AuthorityModes . Server , NestedTickSynchronization . NormalSynchronize ) ]
45+ [ TestFixture ( NetworkTransform . InterpolationTypes . SmoothDampening , Interpolation . Interpolation , Precision . Full , NetworkTransform . AuthorityModes . Owner , NestedTickSynchronization . NormalSynchronize ) ]
46+ [ TestFixture ( NetworkTransform . InterpolationTypes . SmoothDampening , Interpolation . Interpolation , Precision . Half , NetworkTransform . AuthorityModes . Server , NestedTickSynchronization . NormalSynchronize ) ]
47+ [ TestFixture ( NetworkTransform . InterpolationTypes . SmoothDampening , Interpolation . Interpolation , Precision . Half , NetworkTransform . AuthorityModes . Owner , NestedTickSynchronization . NormalSynchronize ) ]
48+ [ TestFixture ( NetworkTransform . InterpolationTypes . SmoothDampening , Interpolation . Interpolation , Precision . Compressed , NetworkTransform . AuthorityModes . Server , NestedTickSynchronization . NormalSynchronize ) ]
49+ [ TestFixture ( NetworkTransform . InterpolationTypes . SmoothDampening , Interpolation . Interpolation , Precision . Compressed , NetworkTransform . AuthorityModes . Owner , NestedTickSynchronization . NormalSynchronize ) ]
3750 public class NestedNetworkTransformTests : IntegrationTestWithApproximation
3851 {
3952 private const string k_TestScene = "NestedNetworkTransformTestScene" ;
@@ -55,6 +68,7 @@ public class NestedNetworkTransformTests : IntegrationTestWithApproximation
5568 private Precision m_Precision ;
5669 private NetworkTransform . AuthorityModes m_Authority ;
5770 private NestedTickSynchronization m_NestedTickSynchronization ;
71+ private NetworkTransform . InterpolationTypes m_InterpolationType ;
5872
5973 public enum Interpolation
6074 {
@@ -82,14 +96,19 @@ public enum NestedTickSynchronization
8296 }
8397
8498
85- public NestedNetworkTransformTests ( Interpolation interpolation , Precision precision , NetworkTransform . AuthorityModes authoritativeModel , NestedTickSynchronization nestedTickSynchronization )
99+ public NestedNetworkTransformTests ( NetworkTransform . InterpolationTypes interpolationType , Interpolation interpolation , Precision precision , NetworkTransform . AuthorityModes authoritativeModel , NestedTickSynchronization nestedTickSynchronization )
86100 {
101+ m_InterpolationType = interpolationType ;
87102 m_Interpolation = interpolation ;
88103 m_Precision = precision ;
89104 m_Authority = authoritativeModel ;
90105 m_NestedTickSynchronization = nestedTickSynchronization ;
91106 }
92107
108+ public NestedNetworkTransformTests ( Interpolation interpolation , Precision precision , NetworkTransform . AuthorityModes authoritativeModel , NestedTickSynchronization nestedTickSynchronization ) :
109+ this ( NetworkTransform . InterpolationTypes . Lerp , interpolation , precision , authoritativeModel , nestedTickSynchronization )
110+ { }
111+
93112 public NestedNetworkTransformTests ( )
94113 {
95114
@@ -130,6 +149,8 @@ protected override void OnOneTimeTearDown()
130149
131150 protected override IEnumerator OnSetup ( )
132151 {
152+ NetworkTransform . AssignDefaultInterpolationType = true ;
153+ NetworkTransform . DefaultInterpolationType = m_InterpolationType ;
133154 yield return WaitForConditionOrTimeOut ( ( ) => m_BaseSceneLoaded . IsValid ( ) && m_BaseSceneLoaded . isLoaded ) ;
134155 AssertOnTimeout ( $ "Timed out waiting for scene { k_TestScene } to load!") ;
135156 }
@@ -148,6 +169,8 @@ protected override void OnInlineTearDown()
148169 {
149170 // This prevents us from trying to destroy the resource loaded
150171 m_PlayerPrefab = null ;
172+ NetworkTransform . AssignDefaultInterpolationType = false ;
173+ NetworkTransform . DefaultInterpolationType = NetworkTransform . InterpolationTypes . Lerp ;
151174 }
152175
153176 private void ConfigureNetworkTransform ( IntegrationNetworkTransform networkTransform )
0 commit comments