Rotate mesh after dragging

Hi. I have a problem with the DragControls library. I use it to move objects and it works great. However, the problem arises when I want to rotate the object after moving it. It rotates on its original axis (the one on which it was initiated). How can I refresh the rotation axis after moving the object? Thanks for the help!


Did you use the ‘dragend’ event to handle the rotation of the object?

const controls = new DragControls( objects, camera, renderer.domElement );

controls.addEventListener( 'dragend', function ( event ) {
// Do something here...
} );