Threejs Wind Turbine

You also have to declare the variable mixer in global scope and update it in your animation loop like so:

if ( mixer ) {

    mixer.update( clock.getDelta() ); // clock is an instance of THREE.Clock

}

You will find this pattern in many existing example, e.g.:

https://threejs.org/examples/#webgl_animation_skinning_morph

2 Likes