以下はARでターゲットとして指定するA-Frameのコマンドの例です。
| 赤い箱 |
<a-box position='0 0.5 0' material='opacity: 0.5; side: double; color: red;'> </a-box> |
| 青い箱の中で 紐がぐるぐる |
<a-box position='0 0.5 0' material='opacity: 0.5; side: double;color: blue;'> <a-torus-knot radius='0.26' radius-tubular='0.05' animation="property: rotation; to: 360 0 0; dur: 5000; easing: linear; loop: true"> </a-torus-knot> </a-box> |
| 緑の小さな フレームだけの箱 |
<a-box position="0 0.5 0" scale="0.5 0.5 0.5" wireframe="true" material='color: green;'></a-box> |
以下はOBJ形式のターゲットを動かす際に指定するA-Frameのコマンドの例です。
| マーカーに垂直な軸を中心にぐるぐる |
animation="property: rotation; to:0 360 0; dur: 5000; easing: linear; loop: true" |