Hey everyone! I’m trying to figure out if it’s possible to have an orbit control that goes back to the origin point after drag. Til now i created a window.addeventlistener triggered by the mouseup that will reset the controls to its origin but it’s not smooth at all. Do you have any solution? (edited)
you could try lerp. Vector3#lerp – three.js docs (threejs.org)
This example uses the orbit controls, with some extra buttons that smoothly reposition the camera position and orbit controls target when pressed.
Camera - CodeSandbox