public void MixAbsolute_CheckPosition() { SetupTest(); PoseTools.MixAbsolute(player, snapshot, absA, 1); Assert.AreEqual(player.transform.position, new Vector3(-10, -10, -10)); }
public void MixRelative_CheckScale_Weighting() { SetupTest(); PoseTools.MixRelative(player, snapshot, relA, 0.5f); Assert.AreEqual(player.transform.localScale, new Vector3(-5, -5, -5)); }
public void MixRelative_CheckScale() { SetupTest(); PoseTools.MixRelative(player, snapshot, relA, 1); Assert.AreEqual(player.transform.localScale, new Vector3(-10, -10, -10)); }
public void MixRelative_CheckPosition_Weighting() { SetupTest(); PoseTools.MixRelative(player, snapshot, relA, 0.5f); Assert.AreEqual(player.transform.position, new Vector3(-4, -4, -4)); }
public void MixRelative_CheckPosition() { SetupTest(); PoseTools.MixRelative(player, snapshot, relA, 1); Assert.AreEqual(player.transform.position, new Vector3(-9, -9, -9)); }
public void MixAbsolute_CheckRotation() { SetupTest(); PoseTools.MixAbsolute(player, snapshot, absA, 1); Assert.AreEqual(player.transform.eulerAngles, new Vector3(0, 0, 0)); }
public void MixAbsolute_CheckPosition_Weighting() { SetupTest(); PoseTools.MixAbsolute(player, snapshot, absA, 0.5f); Assert.AreEqual(player.transform.position, new Vector3(-5, -5, -5)); }
public void IsRelative_ReturnsFalse() { Assert.False(PoseTools.IsRelative(new AbsolutePoseInfo())); }
public void IsRelative_ReturnsTrue() { Assert.True(PoseTools.IsRelative(new RelativePoseInfo())); }
public void IsAbsolute_ReturnsTrue() { Assert.True(PoseTools.IsAbsolute(new AbsolutePoseInfo())); }