How do i achieve making my 3D model rotate round its axis

i have a 3D model but using orbit control makes me move the camera round , i want the object to be fixed in one point and just rotate around it, just like this,3000,404040,0,0,0. how can i achieve this ?

Not sure if three.js has something built in for this use case.

I would just not use orbit controls and write my own document.onmousemove event handler and adjust the meshes rotation.y value by some modification of the events x position delta.

The code of the page is not obfuscated. Just study the JavaScript in index.html. Especially the event listener for mousemove and the renderFrame() function.

1 Like