# Update objects in Dragcontrols

**URL:** <https://discourse.threejs.org/t/update-objects-in-dragcontrols/10996>\
**Category:** Questions\
**Tags:** drag-controls\
**Created:** [November 23, 2019, 8:50am UTC](https://discourse.threejs.org/t/update-objects-in-dragcontrols/10996 "2019-11-23T08:50:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Gangula](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/gangula/32/17731_2.png) [@Gangula](https://discourse.threejs.org/u/Gangula)\
**Post date:** [October 14, 2023, 12:48pm UTC](https://discourse.threejs.org/t/update-objects-in-dragcontrols/10996/4 "2023-10-14T12:48:35Z")

</div>

check out this question for how to update the objects:

> [@Update DragControls array of objects](https://discourse.threejs.org/t/update-dragcontrols-array-of-objects/49505/2):
>
> Just add the new object to the array. Something like this: var controls = new DragControls( objects, ...); // 5 minutes later ... add a new object to the list of draggable objects objects.push( new\_object ); Here is a live demo. Click the button to add a new draggable cube: [https://codepen.io/boytchev/full/zYJMgde](https://codepen.io/boytchev/full/zYJMgde)[[image]](https://codepen.io/boytchev/full/zYJMgde)[Off-topic advice](https://academicgtd.wordpress.com/2011/06/08/never-end-your-email-with-thanks-in-advance/)

---

_[View the full topic](https://discourse.threejs.org/t/update-objects-in-dragcontrols/10996)._
