# Rotation origin change

**URL:** <https://forum.babylonjs.com/t/rotation-origin-change/16655>\
**Category:** Questions\
**Created:** [December 15, 2020, 1:43pm UTC](https://forum.babylonjs.com/t/rotation-origin-change/16655 "2020-12-15T13:43:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marin\_Pericic](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/marin_pericic/32/12104_2.png) [@Marin\_Pericic](https://forum.babylonjs.com/u/Marin_Pericic)\
**Post date:** [December 15, 2020, 1:43pm UTC](https://forum.babylonjs.com/t/rotation-origin-change/16655/1 "2020-12-15T13:43:38Z")

</div>

Is there a good was to change a origin of rotationQuaternion?  
by default, rotation over Y axes is 0 if mesh if facing positive Z. Counterclockwise rotation till PI is negative, clockwise is positive.  
What i need is that Y axes rotation zero is “looking down” the negative x axes and counterclockwise rotation is positive all way to 2 PI

Is there builtin elegant way to do this?

---

<div class="post-metadata">

**Author:** ![aWeirdo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/aweirdo/32/52_2.png) [@aWeirdo](https://forum.babylonjs.com/u/aWeirdo)\
**Post date:** [December 15, 2020, 2:55pm UTC](https://forum.babylonjs.com/t/rotation-origin-change/16655/2 "2020-12-15T14:55:56Z")

</div>

Hi @Marin_Pericic  
I’m slightly confused by the description if you’re wanting to change the “origin” (facing) or the “direction” 🤔

For “origin”,  
this all depends how the mesh was created,  
the best option is to take the model back in your 3D tool of choice and bake the rotation “offline”.  
second option is less optimal, but possible, doing it after you load the model in babylon  
Apply rotations so the model is facing correctly, then call **mesh.bakeCurrentTransformIntoVertices()**  
take note that this also bakes position and scaling, which are reset to 0,0,0 and 1,1,1 respectively

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [December 16, 2020, 1:12am UTC](https://forum.babylonjs.com/t/rotation-origin-change/16655/3 "2020-12-16T01:12:50Z")

</div>

Not sure to understand either, but it seems you simply need to add an offset to your angles to achieve what you want(?)
