예제 #1
0
        public void MixRelative_CheckScale_Weighting()
        {
            SetupTest();

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

            Assert.AreEqual(player.transform.localScale, new Vector3(-5, -5, -5));
        }
예제 #2
0
        public void MixRelative_CheckPosition_Weighting()
        {
            SetupTest();

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

            Assert.AreEqual(player.transform.position, new Vector3(-4, -4, -4));
        }
예제 #3
0
        public void MixRelative_CheckScale()
        {
            SetupTest();

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

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

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

            Assert.AreEqual(player.transform.position, new Vector3(-9, -9, -9));
        }