Adjusting the object rotation direction with key controls is within my capability by utilizing the following code:
case 37:
scene.rotation.x -= 0.01;
break
case 38:
scene.rotation.z -= 0.01
break
Nevertheless, the rotation remains discrete in this scenario, which means that once I release the keyboard keys, the rotation of my scene ceases as well. Is there a method to modify the rotation direction based on keyboard input while sustaining the animation using requestAnimationFrame in the render function?