I'm attempting to take the Fourier transform of the following function: \begin{equation} V(\mathbf{r}) = \begin{cases} V_0 & r<r_0 \\ 0 & r>r_0 \end{cases} \end{equation} My professor recommended I "choose the direction of $\mathbf{k}$ to be along the $z$-axis". In trying to understand what this means, I found this. I can solve the integral given, but I would like a hand in understanding how to perform this rotation and why it changes the $e^{-i\mathbf{k}\cdot\mathbf{r}}$ to $e^{-ik\cos{(\theta)}\mathbf{r}}$.
For reference, the answer to this FT is: \begin{equation} \tilde{V}(\mathbf{k}) = V_0 \dfrac{4\pi r_0^2}{k} j_1 (kr_0) \end{equation} Where $j_1(kr_0)$ is the first-order spherical Bessel function of the first kind.
Thanks!