예제 #1
0
 private void OnDrawGizmos()
 {
     Bezier.DrawPath(
         curves, path,
         drawCurve, curveColor,
         drawHandles, handlesRadius, handlesColor,
         drawPoints, pointRadius, pointsColor,
         drawTangents, tangentsSize, tangentsColor,
         drawNormals, normalsSize, normalsColor,
         drawBinormals, binormalsSize, binormalsColor
         );
 }
예제 #2
0
    private void OnDrawGizmos()
    {
        if (Application.isPlaying && debugEnabled)
        {
            Bezier.DrawPath(
                curves, path,
                drawCurve, curveColor,
                drawHandles, handlesRadius, handlesColor,
                drawPoints, pointRadius, pointsColor,
                drawTangents, tangentsSize, tangentsColor,
                drawNormals, normalsSize, normalsColor,
                drawBinormals, binormalsSize, binormalsColor
                );

            if (lerp)
            {
                Gizmos.DrawLine(obj.transform.position, targetPosition);
            }
        }
    }