Ejemplo n.º 1
0
        public void SetTangentMode(int index, ShapeTangentMode mode)
        {
            SplineControlPoint newPoint = m_ControlPoints[index];

            newPoint.mode          = mode;
            m_ControlPoints[index] = newPoint;
        }
Ejemplo n.º 2
0
        public void SetPosition(int index, Vector3 point)
        {
            if (!IsPositionValid(index, index + 1, point))
            {
                throw new ArgumentException(KErrorMessage);
            }
            SplineControlPoint newPoint = m_ControlPoints[index];

            newPoint.position      = point;
            m_ControlPoints[index] = newPoint;
        }
Ejemplo n.º 3
0
        public void SetRightTangent(int index, Vector3 tangent)
        {
            ShapeTangentMode mode = GetTangentMode(index);

            if (mode == ShapeTangentMode.Linear)
            {
                return;
            }

            SplineControlPoint newPoint = m_ControlPoints[index];

            newPoint.rightTangent  = tangent;
            m_ControlPoints[index] = newPoint;
        }