Hi,
this time I just have simple question.
In the Quaternion documentation I can find the roateTowards function:
https://threejs.org/docs/#api/en/math/Quaternion.rotateTowards
But why am I not able to use this function?
Three is installed with npm and updated.
function animate() {
requestAnimationFrame(animate);
if (mixer) mixer.update(clock.getDelta());
renderer.render(scene, camera);
let targetQuaternion = new THREE.Quaternion(); // just for testing
if(gltfObj.scene)
gltfObj.scene.quaternion.rotateTowards(targetQuaternion, 1);
}
The console tells me that rotateTowards is not a function.
Greets