Exemple #1
0
        public void MixAbsolute_CheckPosition()
        {
            SetupTest();

            PoseTools.MixAbsolute(player, snapshot, absA, 1);

            Assert.AreEqual(player.transform.position, new Vector3(-10, -10, -10));
        }
Exemple #2
0
        public void MixRelative_CheckScale_Weighting()
        {
            SetupTest();

            PoseTools.MixRelative(player, snapshot, relA, 0.5f);

            Assert.AreEqual(player.transform.localScale, new Vector3(-5, -5, -5));
        }
Exemple #3
0
        public void MixRelative_CheckScale()
        {
            SetupTest();

            PoseTools.MixRelative(player, snapshot, relA, 1);

            Assert.AreEqual(player.transform.localScale, new Vector3(-10, -10, -10));
        }
Exemple #4
0
        public void MixRelative_CheckPosition_Weighting()
        {
            SetupTest();

            PoseTools.MixRelative(player, snapshot, relA, 0.5f);

            Assert.AreEqual(player.transform.position, new Vector3(-4, -4, -4));
        }
Exemple #5
0
        public void MixRelative_CheckPosition()
        {
            SetupTest();

            PoseTools.MixRelative(player, snapshot, relA, 1);

            Assert.AreEqual(player.transform.position, new Vector3(-9, -9, -9));
        }
Exemple #6
0
        public void MixAbsolute_CheckRotation()
        {
            SetupTest();

            PoseTools.MixAbsolute(player, snapshot, absA, 1);

            Assert.AreEqual(player.transform.eulerAngles, new Vector3(0, 0, 0));
        }
Exemple #7
0
        public void MixAbsolute_CheckPosition_Weighting()
        {
            SetupTest();

            PoseTools.MixAbsolute(player, snapshot, absA, 0.5f);

            Assert.AreEqual(player.transform.position, new Vector3(-5, -5, -5));
        }
Exemple #8
0
 public void IsRelative_ReturnsFalse()
 {
     Assert.False(PoseTools.IsRelative(new AbsolutePoseInfo()));
 }
Exemple #9
0
 public void IsRelative_ReturnsTrue()
 {
     Assert.True(PoseTools.IsRelative(new RelativePoseInfo()));
 }
Exemple #10
0
 public void IsAbsolute_ReturnsTrue()
 {
     Assert.True(PoseTools.IsAbsolute(new AbsolutePoseInfo()));
 }