Hello, I am a beginner exploring the world of threejs.
Currently, I have a scene set up with an object that can be freely moved along the XYZ Axis using TransformControls.js.
My goal is to retrieve the updated X,Y,Z position coordinates of this specific object within the scene whenever it is translated or moved by clicking and dragging on any axis (X,Y,Z).
Prior to rendering the scene, I typically use mesh.position.set( 0, 0, 0 );
to establish the initial position of the object. However, I am struggling to figure out how to obtain the dynamic position of the object as it moves within the scene.
Ultimately, my objective is to save the modified position coordinates after each transformation operation, allowing me to re-render the scene with the object positioned at the updated coordinates when the user returns to the page or initiates a page refresh.
If anyone has any suggestions or guidance on how to achieve this, I would greatly appreciate it.
Thank you for your help!