Пример #1
0
        public static void DrawBezier(Mathematics.EiBezier bezier, int resolution, Vector3 position, Quaternion rotation)
        {
            var p = position + rotation * bezier.startPoint;

            resolution = Mathf.Max(resolution, 8);
            for (int i = 1; i <= resolution; i++)
            {
                Gizmos.DrawLine(p, p = position + (rotation * bezier.Evaluate((float)i / (float)resolution)));
            }
        }
Пример #2
0
 public static void DrawBezier(Mathematics.EiBezier bezier)
 {
     DrawBezier(bezier, 16);
 }