# setPivotPoint without changing the position of mesh

**URL:** <https://forum.babylonjs.com/t/setpivotpoint-without-changing-the-position-of-mesh/14546>\
**Category:** Questions\
**Created:** [September 30, 2020, 1:50pm UTC](https://forum.babylonjs.com/t/setpivotpoint-without-changing-the-position-of-mesh/14546 "2020-09-30T13:50:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nogalo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nogalo/32/120_2.png) [@nogalo](https://forum.babylonjs.com/u/nogalo)\
**Post date:** [September 30, 2020, 1:50pm UTC](https://forum.babylonjs.com/t/setpivotpoint-without-changing-the-position-of-mesh/14546/1 "2020-09-30T13:50:01Z")

</div>

Hi guys.

I need your help. Here is playground for my issue

[https://www.babylonjs-playground.com/#4UR12G#6](https://www.babylonjs-playground.com/#4UR12G#6)

So at the start I have pivot (redSphere) in the sphere origin.

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/a/add0f7b7dbbf69c4ea1935583d02ef79b4425523.png)

Now I want to move pivot somewhere else (only enabled Z axis in the playground)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/2/2915a4a554503aa4585c6a840f2981841e8f953e.png)

And I can rotate the mesh and it rotates around the new pivot point position

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/9/951fab833097b157d388a28a61efb6962e4a3053.png)

Now I want to change pivot position again, but I want mesh to stay at the same position, and after I rotate it again it will then rotate around newly defined pivot point position.

At the moment If I change the pivot point, the mesh will follow

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/e/ea991e704ddadcc1a663e8638f0b676244e4cb4b.png)

I understand that this is supposed to happen, as I change pivot position and that same rotation is still applied to the sphere, but now around new pivot position.

So I am kinda aware that I have to reset rotation before changing the pivot again, but I tried some things and I couldn’t figure out how to do it properly.

I appreciate any help.

Thanks.
