I wanted to make a nodding effect for my head figure like when I move my mouse at the upper right, my head figure will look up while looking sideways but I only make my head to face sideways, what should I do to in order to make it happen?
window.addEventListener('mousemove', function(e) {
let percX = window.innerWidth*0.5 - e.clientX;
camera.position.x = percX / 100;
camera.lookAt(new THREE.Vector3(0,0,0));
});