I would like the camera to rotate continuously when pressing the button + = And it seems that there is a trigger for 2 seconds (with a click) and then stops.
let btn = document.querySelector('.btn--left');
btn.addEventListener('click',function(event) {
camera.position.x+=(3*Math.sin(angle/6));
camera.position.z+=(3*Math.cos(angle/6));
});
let angle = 0;
const animate = function () {
requestAnimationFrame( animate );
angle-=Math.PI/180*2;
renderer.render( scene, camera );
controls.update();
camera.updateProjectionMatrix();
};
animate();