Skip to content

Commit e74fc7f

Browse files
tweaked tests
1 parent 5a934b3 commit e74fc7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/MixedRealityToolkit.Tests/PlayModeTests/Experimental/BoundsControlTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,13 +419,14 @@ private IEnumerator TestCurrentProximityConfiguration(BoundsControl bbox, TestHa
419419

420420
// move into medium range and check if scale was applied
421421
Vector3 mediumProximityTestDist = frontRightCornerPos;
422-
mediumProximityTestDist.x += proximityConfig.ObjectMediumProximity * 0.8f;
422+
mediumProximityTestDist.x += proximityConfig.ObjectMediumProximity;
423423
yield return hand.MoveTo(mediumProximityTestDist);
424424
Vector3 expectedMediumScale = defaultHandleSize * proximityConfig.MediumScale;
425425
Assert.AreEqual(proximityScaledVisual.localScale, expectedMediumScale, testDescription + " - Proximity medium scale wasn't applied to handle");
426426

427427
// move into close scale range and check if scale was applied
428428
Vector3 closeProximityTestDir = frontRightCornerPos;
429+
closeProximityTestDir.x += proximityConfig.ObjectCloseProximity;
429430
yield return hand.MoveTo(closeProximityTestDir);
430431
Vector3 expectedCloseScale = defaultHandleSize * proximityConfig.CloseScale;
431432
Assert.AreEqual(proximityScaledVisual.localScale, expectedCloseScale, testDescription + " - Proximity close scale wasn't applied to handle");

0 commit comments

Comments
 (0)