Exemplo n.º 1
0
 void DrawControlTangent(BezierNode node, int controlPointIndex)
 {
     if (node.Position != node.GetControlPointPosition(controlPointIndex))//not check if selected point
     {
         //Handles.DrawLine(node.Position, node.GetControlPointPosition(controlPointIndex));
         Handles.DrawBezier(node.Position, node.GetControlPointPosition(controlPointIndex), node.Position, node.GetControlPointPosition(controlPointIndex), Color.green, null, 4f);
     }
 }
Exemplo n.º 2
0
 void DrawBezier(BezierNode nodeA, BezierNode nodeB, Color color)
 {
     Handles.DrawBezier(nodeA.Position, nodeB.Position, nodeA.GetControlPointPosition(1), nodeB.GetControlPointPosition(0), color, null, 2f);
 }