# Manipulating more meshes at the same time

**URL:** <https://discourse.threejs.org/t/manipulating-more-meshes-at-the-same-time/18158>\
**Category:** Questions\
**Tags:** drag-controls\
**Created:** [August 26, 2020, 9:46am UTC](https://discourse.threejs.org/t/manipulating-more-meshes-at-the-same-time/18158 "2020-08-26T09:46:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mirko.simanic](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mirko.simanic](https://discourse.threejs.org/u/mirko.simanic)\
**Post date:** [August 26, 2020, 9:46am UTC](https://discourse.threejs.org/t/manipulating-more-meshes-at-the-same-time/18158/1 "2020-08-26T09:46:36Z")

</div>

Hello,

I have a situation where more objects (meshes) need to be manipulated (dragged, copied etc) at the same time. What would be the best way to do this? I tried to take for example 2 cubes and to put the in the group but I was not able to drag the group as a whole.

Is there another approach that might be better?

Many thanks!  
Mirko

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [August 26, 2020, 10:33am UTC](https://discourse.threejs.org/t/manipulating-more-meshes-at-the-same-time/18158/2 "2020-08-26T10:33:42Z")

</div>

> [@mirko.simanic](#):
>
> I tried to take for example 2 cubes and to put the in the group but I was not able to drag the group as a whole.

`DragControls` actually supports dragging a group of objects. The official example demonstrates this feature:

[https://threejs.org/examples/misc\_controls\_drag](https://threejs.org/examples/misc_controls_drag)

You only have to ensure that `DragControls` has a single draggable group in its internal object array and that `DragControls.transformGroup` is set to `true`.

Besides, if you clone a group, do it like so in order to make the clone recursive:

```js
const clonedGroup = group.clone( true );

```

---

<div class="post-metadata">

**Author:** ![mirko.simanic](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mirko.simanic](https://discourse.threejs.org/u/mirko.simanic)\
**Post date:** [September 7, 2020, 2:25pm UTC](https://discourse.threejs.org/t/manipulating-more-meshes-at-the-same-time/18158/3 "2020-09-07T14:25:19Z")

</div>

Hi Mugen87, thanks a lot for this!

Mirko
