I want to apply rotation to an object around it's x axis 90 degrees first, and then around it's y axis 90 degrees. How can I do that in three.js?
I tried
mesh.rotation.x = Math.PI * 0.5;
mesh.rotation.y = Math.PI * 0.5;
but it doesn't rotate as I wanted.