Gltf loader and Drag Controls

Hi guys i use drag controls in my scene and it works fine. But i am facing a problem like when i drag any model the parts of that model are dragging, is there any way to drag the whole model. I did join the model in blender using ctrl+j but i am facing the same problem.
Any help will be much appreciated.

There is actually limited support for this use case. First, you have to set DragControls.transformGroup to true. Next, you have to ensure to pass only a single glTF object (which is of type THREE.Group) to DragControls. It should then be possible to drag the entire object.

The group dragging feature is demonstrated in the official example.

https://threejs.org/examples/misc_controls_drag

hi @Mugen87, am I still forced to pass a single glTF object in order to make the drag and drop work?
I am having some issues and I want to confirm I need to take into account this limitation.
thanks!

Yes, this limitation is still present. Normally, you would drag’n’drop individual meshes with DragControls. The group feature ensures to drag objects as a group. However, only a single group is supported.