示例#1
0
        /// <summary>
        /// helper for drawing gizmos in the editor
        /// </summary>
        public static void drawGizmos(Vector3[] path, float resolution = 50)
        {
            // horribly inefficient but it only runs in the editor
            var spline = new GoSpline(path);

            spline.drawGizmos(resolution);
        }
示例#2
0
 public void OnDrawGizmos()
 {
     // the editor will draw paths when force straight line is on
     if (!forceStraightLinePath)
     {
         var spline = new GoSpline(nodes);
         Gizmos.color = pathColor;
         spline.drawGizmos(pathResolution);
     }
 }