Drag control for multiple group of objects

Hi everyone,

I’m working on a Three.js project where I need to drag groups of objects, and I have many such groups. The problem I’m encountering is that DragControls.transformGroup only works if the array contains a single draggable group object.

I tried updating the array to contain one group corresponding to the object I hover over, but it didn’t work.

The only solution I’ve found so far is creating multiple DragControls for each group.

Is there another way to solve this problem?

Thanks.