我正在尝试使用Visual Inspector添加一个简单的旋转动画。关于使用此工具编辑和创建场景的文档并不多。
我尝试添加动画文档中提供的示例中的html,但由于某些原因无法工作。他们似乎有能力从可视化检查器创建HTML,您可以将其复制到索引文件中,但这似乎不起作用。
<html>
<head>
<script src="https://aframe.io/releases/0.9.0/aframe.min.js"> .
</script>
</head>
<body>
<a-scene inspector="" keyboard-shortcuts="" screenshot="" vr-mode-
ui="">
<a-sphere src="https://cdn.glitch.com/7ae854de-3b2a-4348-b1f0-
98ba9c8a0f57%2Fearth_texture.jpg?1557029468067" position="-2.94558
0.57905 -1.03297" radius="1.25" geometry="">
<a-animation attribute="rotation" fill="forward" to="0 180 0"
repeat="indefinite" dur="10"></a-animation></a-sphere>
<a-sphere src="https://cdn.glitch.com/7ae854de-3b2a-4348-b1f0-
98ba9c8a0f57%2Fsun_texture.jpg?1557029624357" position="-1.70872
1.25 -8.03299" radius="1.25" color="#EF2D5E" material="color:
#e9ef2c" geometry="" scale="0.1 0.1 0.1"></a-sphere>
<a-sky src="https://cdn.glitch.com/7ae854de-3b2a-4348-b1f0-
98ba9c8a0f57%2Fstars.jpg?1555972451400" material="" geometry=""></a-
sky>
<div class="a-loader-title" style="display: none;"></div>
<div class="a-loader-title" style="display: none;"></div>
<a-entity oculus-go-controls=""></a-entity>
<a-entity text__title="align: center; value: FOSSweb VR" scale="8 8
8" position="-0.8 0.42 -3" link="href: https://www.fossweb.com/"> .
</a-entity><div class="a-loader-title" style="display: none;"></div>
</a-scene>
</body>
</html>我想让地球模型在它的轴线上旋转,然后在单击地球之后,创建一个相机向下平移到更接近地球的动画。
发布于 2019-06-26 04:02:22
a-animation已经被deprecated since 0.9.0了。请改用animation component
https://stackoverflow.com/questions/56760608
复制相似问题