File tree Expand file tree Collapse file tree
com.unity.netcode.gameobjects/Tests/Runtime Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,15 +11,11 @@ namespace Unity.Netcode.RuntimeTests
1111 internal class TransformInterpolationObject : NetworkTransform
1212 {
1313 public static bool TestComplete = false ;
14- // Set the minimum threshold which we will use as our margin of error.
15- // Consoles interpolate with lower floating point precision, so they need additional room for error.
16- // The platform define is set both in a console player and in the editor when it targets a console,
17- // which covers console tests whether they run on-device or through the editor playmode harness.
18- #if UNITY_PS4 || UNITY_PS5 || UNITY_SWITCH || UNITY_GAMECORE
19- public const float MinThreshold = 0.009999f ;
20- #elif UNITY_EDITOR
14+ // Set the minimum threshold which we will use as our margin of error
15+ #if UNITY_EDITOR
2116 public const float MinThreshold = 0.00555555f ;
2217#else
18+ // Add additional room for error on console tests
2319 public const float MinThreshold = 0.009999f ;
2420#endif
2521
You can’t perform that action at this time.
0 commit comments