# Center of rotation not setting up on the default position

**URL:** <https://forum.babylonjs.com/t/center-of-rotation-not-setting-up-on-the-default-position/51829>\
**Category:** Questions\
**Created:** [July 5, 2024, 12:50pm UTC](https://forum.babylonjs.com/t/center-of-rotation-not-setting-up-on-the-default-position/51829 "2024-07-05T12:50:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tulashi](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tulashi/32/36894_2.png) [@tulashi](https://forum.babylonjs.com/u/tulashi)\
**Post date:** [July 5, 2024, 12:50pm UTC](https://forum.babylonjs.com/t/center-of-rotation-not-setting-up-on-the-default-position/51829/1 "2024-07-05T12:50:58Z")

</div>

Hello community, I’m having problem with animations in babylon js. While rotation around z axis it is taking the bottom of the mesh as center for rotation, I think the default should be the center of the mesh. I don’t know what i’m missing, I have set the pivot correctly in the blender and exported it correctly. For all the glb files it is taking the bottom as the center of rotation,

can anyone help??

---

<div class="post-metadata">

**Author:** ![Tricotou](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tricotou/32/5844_2.png) [@Tricotou](https://forum.babylonjs.com/u/Tricotou)\
**Post date:** [July 5, 2024, 1:08pm UTC](https://forum.babylonjs.com/t/center-of-rotation-not-setting-up-on-the-default-position/51829/2 "2024-07-05T13:08:43Z")

</div>

Hello 🙂

Can you share a playground reproducing your problem or at least some code showing how you rotate you mesh ? If you directly modify `mesh.rotation` it should rotate around the pivot center indeed. But if you use for example `mesh.rotate()` with a specific Axis, then it could rotate around another point…

Also sharing an example of a .GLB with the problem would help (you can share .zip in a post)

---

<div class="post-metadata">

**Author:** ![AliceStitcher](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/alicestitcher/32/36198_2.png) [@AliceStitcher](https://forum.babylonjs.com/u/AliceStitcher)\
**Post date:** [July 5, 2024, 1:25pm UTC](https://forum.babylonjs.com/t/center-of-rotation-not-setting-up-on-the-default-position/51829/3 "2024-07-05T13:25:59Z")

</div>

I’ve encountered a similar issue while working on [endless customization options with Zolak furniture configurator](https://zolak.tech/configurator). When using Babylon.js, ensure the pivot point is correctly set in Blender before exporting your GLB files. In Blender, select the mesh, go to Object \> Set Origin \> Origin to Geometry to center the pivot. After exporting, double-check the pivot point in Babylon.js using `mesh.setPivotMatrix(BABYLON.Matrix.Translation(x, y, z));` to adjust it if necessary.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![tulashi](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tulashi/32/36894_2.png) [@tulashi](https://forum.babylonjs.com/u/tulashi)\
**Post date:** [July 6, 2024, 3:16am UTC](https://forum.babylonjs.com/t/center-of-rotation-not-setting-up-on-the-default-position/51829/5 "2024-07-06T03:16:11Z")

</div>

Thank you @Tricotou, Fixed by changing the pivot
