Hi there,
I have a PivotControl component which I use to drag a mesh in the scene. I'm saving the mesh (mesh.toJSON()) and I can load it and maintain the same mesh position after reloading the page. But how could I do the same for the pivot control ? I mean how to save its position to reload it when refreshing the page? I have checked its position, using getPositionFromMatrix and nothing seems to work be affected getting 0,0,0 every time.
I appreciate your help.
Thanks
Hi there, I have a PivotControl component which I use to drag a mesh in the scene. I'm saving the mesh (mesh.toJSON()) and I can load it and maintain the same mesh position after reloading the page. But how could I do the same for the pivot control ? I mean how to save its position to reload it when refreshing the page? I have checked its position, using getPositionFromMatrix and nothing seems to work be affected getting 0,0,0 every time. I appreciate your help. Thanks