Hi all, I’m currently using dragControls to drag and drop multiple Group objects, but apparently dragControls can only handle 1 Group i.e no matter how many Group objects I push into dragControls it will only perform drag and drop on the first group I pushed.
This can be overcome by pushing meshes into 1 temporary Group instead. But this doesn’t work if you want to drag and drop using mousedown event as the meshes are pushed into the temporary Group only after onPointerDown is fired in dragControls resulting in the meshes only being drag-able after a second mousedown event, which is not intuitive.
I overcame this by exposing onPointerDown in dragControls class and manually firing it a 2nd time after mousedown. This works and I can drag multiple groups and without needing a temporary group either.
What I want to know is if there is a better less hacky way to do this?
Thanks!
I’ve thought about some of your recommendations. I’m still prototyping so I’m just currently sticking with my hacky method as it was fast to implement. It probably won’t be final and I’ll settle with one of the other solutions.