2017-09-11 1 views
0

ドキュメントは https://codepen.io/bryik/pen/GZLoQvZが上を指しているのですか、またはYが上を指していますか?回転タグの

<!-- y-roll or "yaw" --> 
 
    <a-plane id="yaw" material="color: #4CC3D9; side: double" position="0 2 0" rotation="0 45 0" width="2" height="2"></a-plane>

YがZない、アップ指していることを示し、Zは https://aframe.io/docs/0.6.0/components/rotation.html しかし、この例(ヨーが垂直周りの回転である)垂直であることを言います ドキュメントにバグはありますか?

+0

おかげ(Zは、通常ヨーあります)。 – ngokevin

答えて

0

ドキュメントが盗聴される可能性がありますが、これは本当にあなたの向きに依存します。そのためのドキュメントに修正を押し、

<script src="https://aframe.io/releases/0.6.1/aframe.min.js"></script> 
<a-scene> 
    <a-text value="PITCH (X)" color="#333" position="-0.5 5.5 -5"></a-text> 
    <a-plane position="0 4 -5" rotation="0 0 0" width="2" height="2" color="blue"><a-animation attribute="rotation" 
       dur="800" 
       fill="none" 
       to="360 0 0" 
       repeat="forwards" 
       ></a-animation></a-plane> 
    <a-text value="YAW (Y)" color="#333" position="-3.5 3.5 -5"></a-text> 
    <a-plane position="-3 2 -5" rotation="0 0 0" width="2" height="2" color="green"><a-animation attribute="rotation" 
       dur="800" 
       fill="none" 
       to="0 360 0" 
       repeat="forwards" 
       ></a-animation></a-plane> 
    <a-text value="ROLL (Z)" color="#333" position="2.5 3.5 -5"></a-text> 
    <a-plane position="3 2 -5" rotation="0 0 0" width="2" height="2" color="red"><a-animation attribute="rotation" 
       dur="800" 
       fill="none" 
       to="0 0 360" 
       repeat="forwards" 
       ></a-animation></a-plane> 
</a-scene> 

https://jsfiddle.net/f922j0th/

関連する問題