Animation won't play

Hello, I need some help. I am playing around with the fireworks example. Sorry I’m beginner. What I am trying to do is replace the rocket.glb with my own animated glb but the animation doesn’t play when I tap the screen. Help please, Thanks

I added this in the head

<script crossorigin=“anonymous” src="//cdn.8thwall.com/web/aframe/aframe-extras-6.1.1.min.js"></script> 

And this in the body

  <a-entity
    id="rocket"
    gltf-model="#rocketModel"
    scale=".1 .1 .1"
    animation-mixer="clip: *; loop: repeat"
    shadow="receive: false">
  </a-entity>

Doesnt seem to work and I cant rescale… Any pointers??

Also had to add this:

        newPole.setAttribute('animation-mixer', 'clip: animation_0')
        newRocket.setAttribute('animation-mixer', 'clip: animation_0')

in the js file. This video helped:

1 Like

thanks for sharing your updates and solution!

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.