Ejemplo n.º 1
0
        public static void TestCubicBezierTangent1()
        {
            Vector3 tangent = new Vector3(-38f, 101f, 0f).normalized;

            AreEqual(tangent, TestPath1.GetTangent(0.0), 0.01f);
        }
Ejemplo n.º 2
0
 public static void TestCubicBezierPosition1()
 {
     AreEqual(new Vector3(73.7f, 152.77f, 0f), TestPath1.GetPoint(0.2), 0.01f);
 }