Is there a way to change the parent of an object in a scene without changing its position? Here is a code snippet that demonstrates this: http://plnkr.co/edit/fpjsUkOA0rH6FvG4DL6Z?p=preview
In the provided example, when attempting to add the sphere to the box, its position
changes. The goal is to retain the original position of the sphere. By uncommenting line 35 in the code, you can see that the sphere moves towards the box. The objective is to maintain the sphere's position and make it a child of the box.
http://plnkr.co/edit/fpjsUkOA0rH6FvG4DL6Z?p=preview