The playback position of the animation clip cannot be changed

Hello. I want to reset the animation playback position to 0 and play it every time the screen is tapped with the animationClip of the Gltf model in 8thwall Studio, but the playback position isn’t changing. Could you please help me investigate the issue in the code?

import * as ecs from '@8thwall/ecs'

ecs.registerComponent({
  name: 'ModelAnimation',
  schema: {
    animeModel: ecs.eid,
  },
  add: (world, component) => {
    const {eid, schemaAttribute} = component
    const {animeModel} = schemaAttribute.get(eid)
    ecs.GltfModel.set(world, animeModel, {
      url: 'assets/models/model.glb',
      animationClip: 'Take 001',
      time: 0,
      loop: false,
      paused: false,

    })

    world.events.addListener(
      world.events.globalId,
      ecs.input.SCREEN_TOUCH_START,
      () => {
        console.log('touch')
        ecs.GltfModel.mutate(world, animeModel, (cursor) => {
          cursor.time = 0
          return false
        })
      }
    )
  },
})

Could you share the model with me so I can take a look? Feel free to DM me.

Sorry for asking, but the issue has been resolved, and it seems there was no problem with the model itself.

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