# Snap with scaling on boundingboxgizmo

**URL:** https://forum.babylonjs.com/t/snap-with-scaling-on-boundingboxgizmo/34406
**Category:** Tutorials and tips
**Created:** [October 2, 2022, 4:18pm UTC](https://forum.babylonjs.com/t/snap-with-scaling-on-boundingboxgizmo/34406 "2022-10-02T16:18:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![flex](https://avatars.discourse-cdn.com/v4/letter/f/8baadc/32.png) [@flex](https://forum.babylonjs.com/u/flex)
#### Post date: [October 2, 2022, 4:18pm UTC](https://forum.babylonjs.com/t/snap-with-scaling-on-boundingboxgizmo/34406/1 "2022-10-02T16:18:21Z")

</div>

I was going to ask a question about how to do this but ended up figuring it out while I was formulating the question.

The scale controls for the boundingboxgizmo keep the face opposite the control being used in a fixed position so scaling and position need to be adjusted at the same time. It took me a while to figure out how to make this work for rotated meshes.

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

---

<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: [October 3, 2022, 12:50pm UTC](https://forum.babylonjs.com/t/snap-with-scaling-on-boundingboxgizmo/34406/2 "2022-10-03T12:50:35Z")

</div>

This is cool !!! thanks for sharing it
