Hi, I am trying to link a slider to a sphere to rotate rather than just moving the position. In order for this to work would the number slider 0-360 need to be converted to radians in the event listener function? As the current output doesnt work.
document.getElementById("pos").addEventListener("input", function (e){
sphere.rotation.y = e.target.value;
console.log(sphere.rotation.y);
});
this is linked to a simple rotation slider:
<input type="range" name="pos" id="pos" min="0" max="360" step ="1"/>
Thanks!