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.