# The axis of rotation needs to be fixed, not moving with every object

**URL:** <https://discourse.threejs.org/t/the-axis-of-rotation-needs-to-be-fixed-not-moving-with-every-object/92363>\
**Category:** Questions\
**Created:** [June 23, 2026, 12:52pm UTC](https://discourse.threejs.org/t/the-axis-of-rotation-needs-to-be-fixed-not-moving-with-every-object/92363 "2026-06-23T12:52:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![michiel86](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@michiel86](https://discourse.threejs.org/u/michiel86)\
**Post date:** [June 23, 2026, 12:52pm UTC](https://discourse.threejs.org/t/the-axis-of-rotation-needs-to-be-fixed-not-moving-with-every-object/92363/1 "2026-06-23T12:52:05Z")

</div>

I am building a small town and I’ve managed to build one street. Now the other streets need to have a different `xStart`, `yStart` AND `r`. Translating seems to be working fine but when I rotate the buildings rotate separately ☹ making a mess as you can see in my pen:

[https://codepen.io/michielschukking/pen/JobYBao?editors=0010](https://codepen.io/michielschukking/pen/JobYBao?editors=0010)

Can you not state the rotation axis or something? Is there an easy fix?

**I need the row of houses to act as one block. One object. Effectively rotating the street.**

---

<div class="post-metadata">

**Author:** ![manthrax](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/manthrax/32/2596_2.png) [@manthrax](https://discourse.threejs.org/u/manthrax)\
**Post date:** [June 23, 2026, 12:58pm UTC](https://discourse.threejs.org/t/the-axis-of-rotation-needs-to-be-fixed-not-moving-with-every-object/92363/2 "2026-06-23T12:58:08Z")

</div>

Read up on “Euler.order” [three.js docs](https://threejs.org/docs/#Euler.order)

And Gimbal Lock: [Gimbal lock - Wikipedia](https://en.wikipedia.org/wiki/Gimbal_lock)

Might be related.. and fixed by doing something like  
`mesh.rotation.order = "YZX" `  
or:  
`mesh.rotation.order = "ZYX" `

---

<div class="post-metadata">

**Author:** ![oldsegotia](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/oldsegotia/32/22601_2.png) [@oldsegotia](https://discourse.threejs.org/u/oldsegotia)\
**Post date:** [June 23, 2026, 2:06pm UTC](https://discourse.threejs.org/t/the-axis-of-rotation-needs-to-be-fixed-not-moving-with-every-object/92363/3 "2026-06-23T14:06:49Z")

</div>

> [@michiel86](#):
>
> I need the row of houses to act as one block. One object. Effectively rotating the street

Just group them and then rotate the group.

[https://threejs.org/docs/#Group](https://threejs.org/docs/#Group)

---

<div class="post-metadata">

**Author:** ![phil\_crowther](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/phil_crowther/32/64202_2.png) [@phil\_crowther](https://discourse.threejs.org/u/phil_crowther)\
**Post date:** [June 23, 2026, 6:18pm UTC](https://discourse.threejs.org/t/the-axis-of-rotation-needs-to-be-fixed-not-moving-with-every-object/92363/4 "2026-06-23T18:18:16Z")

</div>

With regard to rotation order -

One option might be the rotation order I use for my flight demos - which is YXZ (I think that is the standard used in the aviation textbooks).

Y is the least important axis because heading does not affect airplane performance; X is the pitch axis and tilts the world up and down (or tilts the movement vector up and down); Z is the bank axis and rotates the entire 2D screen (or rotates the airplane around the movement vector).

Even if you are not trying to simulate an airplane, this order could be useful where you want to travel in the direction you are pointed.

I only use Euler inputs, but I think three.js may sometimes save me from things like gimbal lock by internally using quaternions.

---

<div class="post-metadata">

**Author:** ![michiel86](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@michiel86](https://discourse.threejs.org/u/michiel86)\
**Post date:** [June 23, 2026, 7:07pm UTC](https://discourse.threejs.org/t/the-axis-of-rotation-needs-to-be-fixed-not-moving-with-every-object/92363/5 "2026-06-23T19:07:11Z")

</div>

I’ll try this tomorrow. Never used group before. Seems like it should work

---

<div class="post-metadata">

**Author:** ![manthrax](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/manthrax/32/2596_2.png) [@manthrax](https://discourse.threejs.org/u/manthrax)\
**Post date:** [June 24, 2026, 9:42pm UTC](https://discourse.threejs.org/t/the-axis-of-rotation-needs-to-be-fixed-not-moving-with-every-object/92363/6 "2026-06-24T21:42:31Z")

</div>

Ohhh sorry I misunderstood the issue 🙂 yes! Group! 🙂

---

<div class="post-metadata">

**Author:** ![michiel86](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@michiel86](https://discourse.threejs.org/u/michiel86)\
**Post date:** [June 25, 2026, 12:22pm UTC](https://discourse.threejs.org/t/the-axis-of-rotation-needs-to-be-fixed-not-moving-with-every-object/92363/7 "2026-06-25T12:22:37Z")

</div>

And it worked: [https://codepen.io/michielschukking/pen/wBgdxrL](https://codepen.io/michielschukking/pen/wBgdxrL)
