# How can I use bounding box gizmo with the orthographic camera?

**URL:** <https://forum.babylonjs.com/t/how-can-i-use-bounding-box-gizmo-with-the-orthographic-camera/40334>\
**Category:** Questions\
**Created:** [April 28, 2023, 12:33pm UTC](https://forum.babylonjs.com/t/how-can-i-use-bounding-box-gizmo-with-the-orthographic-camera/40334 "2023-04-28T12:33:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathus1](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mathus1/32/8535_2.png) [@mathus1](https://forum.babylonjs.com/u/mathus1)\
**Post date:** [April 28, 2023, 12:33pm UTC](https://forum.babylonjs.com/t/how-can-i-use-bounding-box-gizmo-with-the-orthographic-camera/40334/1 "2023-04-28T12:33:18Z")

</div>

Hi there.

I am trying to drag the objects using Boundingbox gizmo in an orthographic camera. However, it is not working.

The PG is here: [https://playground.babylonjs.com/#EBPQH9#121](https://playground.babylonjs.com/#EBPQH9#121)

Could someone find a solution for this?

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [April 28, 2023, 1:38pm UTC](https://forum.babylonjs.com/t/how-can-i-use-bounding-box-gizmo-with-the-orthographic-camera/40334/2 "2023-04-28T13:38:11Z")

</div>

BoundingBoxGizmo doesn’t drag, you need positionGizmo [Orthographic camera with bounding box | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#EBPQH9#122)

---

<div class="post-metadata">

**Author:** ![mathus1](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mathus1/32/8535_2.png) [@mathus1](https://forum.babylonjs.com/u/mathus1)\
**Post date:** [April 29, 2023, 5:12am UTC](https://forum.babylonjs.com/t/how-can-i-use-bounding-box-gizmo-with-the-orthographic-camera/40334/3 "2023-04-29T05:12:14Z")

</div>

In my project, I had to deactivate the positionGizmo because the user needs to drag the object freely in all directions. Isn’t there a way to use the bounding box with this camera? Maybe just turning off some camera inputs while dragging the object  
I tried using this but it didn’t work

```auto
gizmoManager.onAttachedToMeshObservable.add(() => {
    gizmoManager.boundingBoxDragBehavior.onDragEndObservable.add(() => { camera.inputs.add(camera.inputs.attached.mouse); });
    gizmoManager.boundingBoxDragBehavior.onDragStartObservable.add(() => { camera.inputs.remove(camera.inputs.attached.mouse); });
                        });

```

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

---

<div class="post-metadata">

**Author:** ![mathus1](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mathus1/32/8535_2.png) [@mathus1](https://forum.babylonjs.com/u/mathus1)\
**Post date:** [May 1, 2023, 1:31pm UTC](https://forum.babylonjs.com/t/how-can-i-use-bounding-box-gizmo-with-the-orthographic-camera/40334/4 "2023-05-01T13:31:53Z")

</div>

I found a way to drag the mesh freely

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