I want to rotate an object or the camera around the center of an object, however the object is not placed in the center of the canvas, a little to the left. So using OrbitControls is making the object rotate it around the center of the canvas. When I change the target of the OrbitControls to the center of the object, due to how orbit controls is defined, it is rearranging the center again to the center of the canvas.
I know OrbitControls should not be used here but I don’t know what I should use then?
Even tried CameraControls but it still is rotating around the center of the canvas.
Savinyu Pant is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.