設點 $P(x,y,z)$,$x,y,z>0$,直線 $OP$ 的方向向量 $\overset{\large\rightharpoonup}{OP}=(x,y,z)$,$x$ 軸方向向量 $(1,0,0)$,由題意條件得
$$x^2+y^2+z^2=1$$
$$\begin{aligned} &\cos 45^\circ=\dfrac{\left|(x,y,z)\cdot(1,0,0)\right|}{\sqrt{x^2+y^2+z^2}\cdot 1}=\dfrac{\sqrt{2}}{2}\\ \Rightarrow\ &x^2=\dfrac{1}{2} \end{aligned}$$
點 $P$ 到 $y$ 軸的距離為 $\sqrt{x^2+z^2}$,所以
$$\begin{aligned} &\sqrt{x^2+z^2}=\dfrac{\sqrt{6}}{3}\\ \Rightarrow\ &x^2+z^2=\dfrac{2}{3} \end{aligned}$$
解聯立方程組得 $z^2=\dfrac{2}{3}-\dfrac{1}{2}=\dfrac{1}{6}$,又 $z>0$,所以 $z=\dfrac{\sqrt{6}}{6}$,故選 $(4)$。設點 $P(x,y,z)$,$x,y,z>0$,直線 $OP$ 的方向向量 $\overset{\large\rightharpoonup}{OP}=(x,y,z)$,$x$ 軸方向向量 $(1,0,0)$,由題意條件得
$$x^2+y^2+z^2=1$$
$$\begin{aligned} &\cos 45^\circ=\dfrac{\left|(x,y,z)\cdot(1,0,0)\right|}{\sqrt{x^2+y^2+z^2}\cdot 1}=\dfrac{\sqrt{2}}{2}\\ \Rightarrow\ &x^2=\dfrac{1}{2} \end{aligned}$$
點 $P$ 到 $y$ 軸的距離為 $\sqrt{x^2+z^2}$,所以
$$\begin{aligned} &\sqrt{x^2+z^2}=\dfrac{\sqrt{6}}{3}\\ \Rightarrow\ &x^2+z^2=\dfrac{2}{3} \end{aligned}$$
解聯立方程組得 $z^2=\dfrac{2}{3}-\dfrac{1}{2}=\dfrac{1}{6}$,又 $z>0$,所以 $z=\dfrac{\sqrt{6}}{6}$,故選 $(4)$。