【发布时间】:2021-12-31 10:06:18
【问题描述】:
<a-entity class="rota" id="duck1" color="#fdfd96" scale="0.1 0.1 .1" position="2 0 -7" animation="property: rotation; to:0 -360 0; loop:true; easing:linear; dur:30000">
<a-entity class="rota" color="#F0FFF0" gltf-model="spaceship.glb" animation__mouseenter="property: rotation; to:0 360 0; easing:linear; dur:4000; startEvents: mouseenter" position="20 0 -10" scale="2 3 3" collison-check="el: #otherduck; radius: 0.15; other-radius: 0.15;"> </a-entity>
</a-entity>
这里有两个“实体”:一个是父级,另一个是子级。父实体的动画与dur:30000 一起正常工作。在子实体中,我想将“dur”减少到dur:4000。我该如何改变呢?
【问题讨论】:
标签: aframe