예제 #1
0
    /// <summary>
    /// Calculates and draws arrow
    /// </summary>
    private void Arrow()
    {
        Vector3 arrowHeadPos     = Vector3.up * (sinParam * arrowHeadAmplitude + arrowHeadOffset) + new Vector3(0.5f, 1f, 1.5f);
        Vector3 currentDirection = Quaternion.AngleAxis(currentAngle, Vector3.up) * Vector3.forward;

        CustomGizmos.DrawArrow(arrowHeadPos, arrowHeadPos + Vector3.down, arrowTipSize, currentDirection);
    }