I have incorporated a 3D hamburger model on my website using Three.js. However, I am facing an issue where the rotation behaves unexpectedly. The burger is supposed to rotate around itself at a 45-degree angle, but instead, it rotates from the upper left corner. How can I rectify this and make it rotate properly?
Currently, when the burger rotates, it does so around the upper left corner instead of rotating around the middle of the bread as intended. It should rotate along the y-axis while maintaining the center point. Here is a visual representation of the issue: https://i.sstatic.net/TO6o0.gif