Skip to content

Commit d977620

Browse files
fix: TransformInterpolationTests Threshold Adjustment (#2145)
* fix increasing the threshold slightly for consoles. * style adding additional error information.
1 parent b3c889c commit d977620

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

com.unity.netcode.gameobjects/Tests/Runtime/TransformInterpolationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Unity.Netcode.RuntimeTests
1111
public class TransformInterpolationObject : NetworkBehaviour
1212
{
1313
// Set the minimum threshold which we will use as our margin of error
14-
public const float MinThreshold = 0.001f;
14+
public const float MinThreshold = 0.005f;
1515

1616
public bool CheckPosition;
1717
public bool IsMoving;
@@ -24,7 +24,7 @@ private void Update()
2424
{
2525
if (transform.position.y < -MinThreshold || transform.position.y > 100.0f + MinThreshold)
2626
{
27-
Debug.LogError($"Interpolation failure. transform.position.y is {transform.position.y}. Should be between 0.0 and 100.0");
27+
Debug.LogError($"Interpolation failure. transform.position.y is {transform.position.y}. Should be between 0.0 and 100.0. Current threshold is [+/- {MinThreshold}].");
2828
}
2929
}
3030

0 commit comments

Comments
 (0)