Cannot get instacedMesh and gltf to work

Hi i have made this pen with a gltf and i am trying to instanced mesh it but it doesnt seem to be work with no obvious issue any ideas?

Hi!

        dummy.rotation.y =
          Math.sin(x / 4 + Math.random()) +
          Math.sin(y / 4 + Math.random()) +
          Math.sin(z / 4 + Math.random());

Maybe I overlooked something. What are x, y and z variables in this code? Where do you define them?

1 Like

Apologies removed and just put to 0 still no instancing tho

https://codepen.io/uiunicorn/pen/poYjYje?editors=1010 managed to do it