I created a scene with Blender. It has a camera and is animated to follow a path.
Now when I import the exported gltf model into threejs and start animating the camera in respect to scrolling the webpage, the camera position does not get updated but stays at 0,0,0.
I am using this to animate the camera based on the amount I have scrolled:
actions[‘Camera’]!.getMixer().setTime(actions[‘Camera’]!.getClip().duration * scrollPercentage);
I am using react with react-three-fiber and react-three/drei, I transformed the gltf model to jsx with gltfjsx.
Why is the position of the camera not updated?