diff --git a/tests/RustToDust.Tests/CultNetMultiplayerTests.cs b/tests/RustToDust.Tests/CultNetMultiplayerTests.cs index ee3e11b..fea0a5d 100644 --- a/tests/RustToDust.Tests/CultNetMultiplayerTests.cs +++ b/tests/RustToDust.Tests/CultNetMultiplayerTests.cs @@ -811,9 +811,10 @@ namespace RustToDust.Tests GeomScale = 1f, LegCount = 2, IsArachnidUp = false, - IsDigitigrade = true, - FootNormal = new LegArray4 { L0 = Vector3.UnitY, L1 = Vector3.UnitY } + IsDigitigrade = true }; + snap2Leg.FootNormal[0] = Vector3.UnitY; + snap2Leg.FootNormal[1] = Vector3.UnitY; var snap4Leg = new WalkerVisualSnapshot { ComPos = new Vector3(12f, 5f, 12f), @@ -824,9 +825,9 @@ namespace RustToDust.Tests GeomScale = 1.15f, LegCount = 4, IsArachnidUp = false, - IsDigitigrade = false, - FootNormal = new LegArray4 { L0 = Vector3.UnitY, L1 = Vector3.UnitY, L2 = Vector3.UnitY, L3 = Vector3.UnitY } + IsDigitigrade = false }; + for (int i = 0; i < 4; i++) snap4Leg.FootNormal[i] = Vector3.UnitY; var swapInterp = WalkerVisualSnapshot.Interpolate(in snap2Leg, in snap4Leg, 0.5f); Assert.Equal(4, swapInterp.LegCount); Assert.Equal(snap4Leg.ComPos, swapInterp.ComPos);