I would like to draw cylinders (tikz shape) with different orientations. thus I will wish that the cylinder (2) is parallel to the x axis.
I'm tested different values for the parameters I can not thanks for your help
\documentclass{article}
\usepackage{tikz,esvect}
\usetikzlibrary{3d,calc,shapes}
\begin{document}
\begin{tikzpicture}[x={(-0.2cm,-0.4cm)}, y={(1cm,0cm)}, z={(0cm,1cm)}]
\draw[-latex] (0,0,0) coordinate(O) -- (5,0,0) node[above]{$\vv{x}$};
\draw[-latex] (0,0,0) coordinate(O) -- (0,5,0) node[above]{$\vv{y}$};
\draw[-latex] (0,0,0) coordinate(O) -- (0,0,5) node[right]{$\vv{z}$};
\tikzset{zxplane/.style={canvas is zx plane at y=#1,very thin}}
\tikzset{yxplane/.style={canvas is yx plane at z=#1,very thin}}
\begin{scope}[yxplane=3]
\draw[dashed] (0,0) circle[radius=5cm] ;
\coordinate(C) at (0,5);
\draw[dashed] (0,0) -- (C);
\draw[thick,blue] ($(C)+(-0.25,-0.5)$) --++(-0.5,0.5)--++(+0.5,0.5);
\node [cylinder,draw=black,thick,aspect=1.5,minimum height=2cm,minimum width=1cm,shape border rotate=90,cylinder uses custom fill, cylinder body fill=red!30,cylinder end fill=red!5] at ($(C)-(0,0,-1)$){1};
\draw[thick,blue] ($(C)+(0.25,-0.5)$) --++(0.5,0.5)--++(-0.5,0.5);
\coordinate(C2) at (5,0);
\node [cylinder,draw=black,thick,aspect=1,minimum height=2cm,minimum width=1cm,shape border
rotate=-90,cylinder uses custom fill, cylinder body fill=red!30,cylinder end fill=red!5] at ($(C2)-(0,0,-1)$){2};
\coordinate(C3) at (2.5,0);
\node [cylinder,draw=black,thick,aspect=0.5,minimum height=2cm,minimum width=1cm,shape border
rotate=0,cylinder uses custom fill, cylinder body fill=red!30,cylinder end fill=red!5] at ($(C3)-(0,0,-1)$){3};
\end{scope}
\begin{scope}[yxplane=0]
\coordinate(C4) at (2.5,0);
\node [cylinder,draw=black,thick,aspect=1.5,minimum height=2cm,minimum width=1cm,shape border
rotate=90,cylinder uses custom fill, cylinder body fill=red!30,cylinder end fill=red!5] at ($(C4)-(0,0,-1)$){4};
\end{scope}
\draw[dashed] (C2) -- (C3) --(C4);
\end{tikzpicture}
\end{document}

