I am facing a challenge with Three.js. I am trying to rotate a sphere (representing Earth) around an axis tilted by 23.5 degrees. Although I have found the properties sphere.rotation.x, sphere.rotation.y, and sphere.rotation.z, combining them in the correct ratio results in a strange rotation where there is no fixed axis. It seems like I need a function similar to sphere.rotation.vector(1,0,-1). Does anyone know what this function is called and the correct syntax for using it?
Thank you in advance for any assistance!