Move ObjLoader component one by one?

Hi all,

I have a problem when I want to move the objects that included in the scene

  controls = new OrbitControls(camera, renderer.domElement);

   dragControls = new DragControls([...objects], camera, renderer.domElement);
    dragControls.transformGroup = true;
    dragControls.addEventListener("drag", render);

    dragControls.addEventListener("dragstart", function () {
      controls.enabled = false;
    dragControls.addEventListener("dragend", function () {
      controls.enabled = true;

The problem is when I added more than one component, I tried to move one of them, but the component that moved is the first one.


I solved it by

  dragControls = new DragControls([Objobject], camera, renderer.domElement);