# BoundingBox Gizmo Rotation calculation & Dragging along axis

**URL:** <https://forum.babylonjs.com/t/boundingbox-gizmo-rotation-calculation-dragging-along-axis/4522>\
**Category:** Questions\
**Created:** [July 15, 2019, 2:00pm UTC](https://forum.babylonjs.com/t/boundingbox-gizmo-rotation-calculation-dragging-along-axis/4522 "2019-07-15T14:00:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacob](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jacob/32/342_2.png) [@Jacob](https://forum.babylonjs.com/u/Jacob)\
**Post date:** [July 15, 2019, 2:00pm UTC](https://forum.babylonjs.com/t/boundingbox-gizmo-rotation-calculation-dragging-along-axis/4522/1 "2019-07-15T14:00:59Z")

</div>

I have 2 questions which might sound naive.  
Firstly, I have created a BoundingBox gizmo with MakeNotPickableAndWrapInBoundingBox property.  
I would like to know the number of degrees the bounding box has rotated when I rotate it with my poiner device. This, I think has to do with quaternions and I never understood them 🙂

Here is the playground  
[https://playground.babylonjs.com/#TMBNGD](https://playground.babylonjs.com/#TMBNGD)

Secondly I would like to know if the BoundingBox gizmo can be set so that it can be dragged on XYZ axis.  
Thanks

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [July 15, 2019, 5:09pm UTC](https://forum.babylonjs.com/t/boundingbox-gizmo-rotation-calculation-dragging-along-axis/4522/2 "2019-07-15T17:09:00Z")

</div>

Pinging @trevordev

---

<div class="post-metadata">

**Author:** ![trevordev](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/trevordev/32/16_2.png) [@trevordev](https://forum.babylonjs.com/u/trevordev)\
**Post date:** [July 15, 2019, 5:59pm UTC](https://forum.babylonjs.com/t/boundingbox-gizmo-rotation-calculation-dragging-along-axis/4522/3 "2019-07-15T17:59:24Z")

</div>

See [https://playground.babylonjs.com/#TMBNGD#3](https://playground.babylonjs.com/#TMBNGD#3)

You can always convert to euler angles for easy to read rotation values

and to enable dragging pointerDragBehavior ([Use Mesh Behaviors (eg. dragging) - Babylon.js Documentation](https://doc.babylonjs.com/how_to/meshbehavior#pointerdragbehavior)) can be used
