I have a problem in my scene. I have transform controls attached to scene children using raycasting. Whenever I click on first mesh’s arrow when it is on second mesh’s body the control changes to the second mesh. The same happens when the dragging ends at another mesh.
How to make transform controls stay on same mesh even when the click event ends on another mesh.
Here is the codepen https://codepen.io/abnormalcoder/pen/gOOdjgY
Thanks in advance.