首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用Visual Inpsector for Aframe将动画添加到场景中?

如何使用Visual Inpsector for Aframe将动画添加到场景中?
EN

Stack Overflow用户
提问于 2019-06-26 03:10:39
回答 1查看 28关注 0票数 0

我正在尝试使用Visual Inspector添加一个简单的旋转动画。关于使用此工具编辑和创建场景的文档并不多。

我尝试添加动画文档中提供的示例中的html,但由于某些原因无法工作。他们似乎有能力从可视化检查器创建HTML,您可以将其复制到索引文件中,但这似乎不起作用。

代码语言:javascript
复制
<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>

我想让地球模型在它的轴线上旋转,然后在单击地球之后,创建一个相机向下平移到更接近地球的动画。

EN

回答 1

Stack Overflow用户

发布于 2019-06-26 04:02:22

a-animation已经被deprecated since 0.9.0了。请改用animation component

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56760608

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档