I am currently working on implementing the functionality to rotate the mesh using the mouse.
The reference code can be found here.
My specific query is regarding how to utilize the mouse for rotation around the Z axis (red line).
After reviewing various examples in Three.js, I have noticed that they only demonstrate rotation around the x or y axis.
Any assistance on this matter would be greatly appreciated.
Here is a link to my code snippet: https://jsfiddle.net/pfk7j7a3/3/
<script type="text/javascript">
CustomOrbit = function () {
// Implementation details here
};
</script>
<script type="text/javascript">
// Additional code here
</script>