cut11b: index inline LegArray4 in replication test
This commit is contained in:
parent
2945e33e92
commit
bc6ec55e43
1 changed files with 5 additions and 4 deletions
|
|
@ -811,9 +811,10 @@ namespace RustToDust.Tests
|
|||
GeomScale = 1f,
|
||||
LegCount = 2,
|
||||
IsArachnidUp = false,
|
||||
IsDigitigrade = true,
|
||||
FootNormal = new LegArray4<Vector3> { 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<Vector3> { 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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue