Ejemplo n.º 1
0
        /// <summary>
        /// Insert new point to spline
        /// </summary>
        /// <param name="pos">new point position</param>
        void Insert(Vector3 pos)
        {
            spline.AddPoint(pos, selectedPoint);

            selectedPoints = new List <int>();
            selectedPoints.Add(spline.Length - 1);

            SetCurrPositions();
            currPos[selectedPoint] = spline[selectedPoint].position;
        }