# Bounding Box Gizmo in Gizmo Manager Allows Drag Even If Not Enabled

**URL:** <https://forum.babylonjs.com/t/bounding-box-gizmo-in-gizmo-manager-allows-drag-even-if-not-enabled/31639>\
**Category:** Questions\
**Created:** [June 23, 2022, 3:28pm UTC](https://forum.babylonjs.com/t/bounding-box-gizmo-in-gizmo-manager-allows-drag-even-if-not-enabled/31639 "2022-06-23T15:28:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericwood73](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ericwood73/32/22967_2.png) [@ericwood73](https://forum.babylonjs.com/u/ericwood73)\
**Post date:** [June 23, 2022, 3:28pm UTC](https://forum.babylonjs.com/t/bounding-box-gizmo-in-gizmo-manager-allows-drag-even-if-not-enabled/31639/1 "2022-06-23T15:28:01Z")

</div>

> **[Babylon.js Playground](https://playground.babylonjs.com/#VR832A%231)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

It appears that when using a GizmoManager, that the bounding box gizmo allows drag even if `enableDragBehavior` has not been called. Note the doesn’t happen if the BoundingBoxGizmo is created without a GizmoManager. In fact enableDragBehavior doesn’t appear to work at all without a GizmoManager. I just want to disable the ability to drag using the bounding box gizmo as I use my own drag behavior.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [June 23, 2022, 4:23pm UTC](https://forum.babylonjs.com/t/bounding-box-gizmo-in-gizmo-manager-allows-drag-even-if-not-enabled/31639/2 "2022-06-23T16:23:48Z")

</div>

cc @Cedric

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [June 23, 2022, 4:56pm UTC](https://forum.babylonjs.com/t/bounding-box-gizmo-in-gizmo-manager-allows-drag-even-if-not-enabled/31639/3 "2022-06-23T16:56:21Z")

</div>

I’ll take a look in the coming days.

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [June 24, 2022, 12:46am UTC](https://forum.babylonjs.com/t/bounding-box-gizmo-in-gizmo-manager-allows-drag-even-if-not-enabled/31639/4 "2022-06-24T00:46:20Z")

</div>

Assigned @Cedric on June 24, 2022, 12:46am UTC



---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [June 27, 2022, 9:24am UTC](https://forum.babylonjs.com/t/bounding-box-gizmo-in-gizmo-manager-allows-drag-even-if-not-enabled/31639/5 "2022-06-27T09:24:05Z")

</div>

There is the `disableMovement` property:

[BoundingBox Gizmo Testing | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#VR832A#3)

Is it what you were looking for?

The drag you see with the bounding box is not related to it. It’s part of the gizmomanager (SixDofDragBehavior). That’s why there is no drag by default with the bounding box gizmo.

---

<div class="post-metadata">

**Author:** ![ericwood73](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ericwood73/32/22967_2.png) [@ericwood73](https://forum.babylonjs.com/u/ericwood73)\
**Post date:** [June 28, 2022, 6:01pm UTC](https://forum.babylonjs.com/t/bounding-box-gizmo-in-gizmo-manager-allows-drag-even-if-not-enabled/31639/6 "2022-06-28T18:01:04Z")

</div>

That’s what I was looking for. Thanks. It doesn’t seem to work in a 4.2.1 PG. Is that expected? Is there anything I can change to get it to work in 4.2.1?

---

<div class="post-metadata">

**Author:** ![Blake](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/blake/32/21509_2.png) [@Blake](https://forum.babylonjs.com/u/Blake)\
**Post date:** [June 28, 2022, 6:15pm UTC](https://forum.babylonjs.com/t/bounding-box-gizmo-in-gizmo-manager-allows-drag-even-if-not-enabled/31639/7 "2022-06-28T18:15:03Z")

</div>

You could try setting the drag behavior’s attach function to an empty definition so that it never gets attached to the mesh. That seems to work even in version 4.2.1

```auto
gizmoManager.boundingBoxDragBehavior.attach = () => {};

```

> **[Babylon.js Playground](https://playground.babylonjs.com/#VR832A%234)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [November 18, 2022, 10:16am UTC](https://forum.babylonjs.com/t/bounding-box-gizmo-in-gizmo-manager-allows-drag-even-if-not-enabled/31639/8 "2022-11-18T10:16:10Z")

</div>

Unassigned @Cedric on November 18, 2022, 10:16am UTC


