# \#rotate

**URL:** https://discourse.threejs.org/tag/rotate/520.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [Rotating viewport in threejs on keyboard like in threejs holding left mouse's key event](https://discourse.threejs.org/t/rotating-viewport-in-threejs-on-keyboard-like-in-threejs-holding-left-mouses-key-event/82267)

<div class="topic-metadata">

**Author:** [@meded90](https://discourse.threejs.org/u/meded90)\
**Replies:** 9\
**Last updated:** [May 10, 2025, 4:22pm UTC](https://discourse.threejs.org/t/rotating-viewport-in-threejs-on-keyboard-like-in-threejs-holding-left-mouses-key-event/82267 "2025-05-10T16:22:55Z")

</div>

I have an option to move forward/backward and right/left And i wanted to have an option to rotate viewport like it does threejs on holding left mouse’s key currently for rotation i have a code: if (keys\['home'\]) { …

---

## [Dynamic rotate speed with Trackball controls](https://discourse.threejs.org/t/dynamic-rotate-speed-with-trackball-controls/80831)

<div class="topic-metadata">

**Author:** [@ThreeJsEnjoyer](https://discourse.threejs.org/u/ThreeJsEnjoyer)\
**Replies:** 6\
**Last updated:** [April 8, 2025, 8:51pm UTC](https://discourse.threejs.org/t/dynamic-rotate-speed-with-trackball-controls/80831 "2025-04-08T20:51:27Z")

</div>

I’m using an Orthographic camera and Trackball controls. There are various reasons why a perspective camera and orbit controls don’t work for me so I’m “stuck” with this setup. I’m very happy with it but I’ve got a probl…

---

## [\[issue\]Transform controls issue roate X,Y,Z 360 degrees](https://discourse.threejs.org/t/issue-transform-controls-issue-roate-x-y-z-360-degrees/63250)

<div class="topic-metadata">

**Author:** [@chrisnguyen](https://discourse.threejs.org/u/chrisnguyen)\
**Replies:** 3\
**Last updated:** [March 27, 2024, 7:10am UTC](https://discourse.threejs.org/t/issue-transform-controls-issue-roate-x-y-z-360-degrees/63250 "2024-03-27T07:10:29Z")

</div>

I have issue when use TransformControls. In mode rotate, i want to rotate object 360 degrees. Code below: else if (axis === "X" axis === "Y" axis === "Z") { this.rotationAxis.copy(\_unit\[axis\]); this.rotation…

---

## [Adding annotations (or markers) dynamically after rotating an object](https://discourse.threejs.org/t/adding-annotations-or-markers-dynamically-after-rotating-an-object/53971)

<div class="topic-metadata">

**Author:** [@alexnorvag](https://discourse.threejs.org/u/alexnorvag)\
**Replies:** 2\
**Last updated:** [July 17, 2023, 6:13pm UTC](https://discourse.threejs.org/t/adding-annotations-or-markers-dynamically-after-rotating-an-object/53971 "2023-07-17T18:13:15Z")

</div>

Hey guys. :wave: I need some help from the three.js community. I faced with a problem with dynamically adding annotations to the surface of an object that has been rotated using Transform Controls. The user clicks on …

---

## [Loaded GLTF Model Children Rotate On Axis Not working as expected](https://discourse.threejs.org/t/loaded-gltf-model-children-rotate-on-axis-not-working-as-expected/49728)

<div class="topic-metadata">

**Author:** [@erlandazakaria](https://discourse.threejs.org/u/erlandazakaria)\
**Replies:** 4\
**Last updated:** [March 29, 2023, 6:25pm UTC](https://discourse.threejs.org/t/loaded-gltf-model-children-rotate-on-axis-not-working-as-expected/49728 "2023-03-29T18:25:59Z")

</div>

Hi, I’m not sure what’s wrong here, maybe anyone can help. So, currently I want to rotate a Ferris Wheel on imported scene from blender. Ferris Wheel is a group contains 2 objects the circle one (named animate) and the…

---

## [Rotate object so it always looks at specified Vectors](https://discourse.threejs.org/t/rotate-object-so-it-always-looks-at-specified-vectors/44130)

<div class="topic-metadata">

**Author:** [@xenonpn](https://discourse.threejs.org/u/xenonpn)\
**Replies:** 10\
**Last updated:** [November 1, 2022, 8:53pm UTC](https://discourse.threejs.org/t/rotate-object-so-it-always-looks-at-specified-vectors/44130 "2022-11-01T20:53:59Z")

</div>

I grab vertex positions of characters hand during FBX animation, how can I rotate weapon so it always stays rotated relative to chars hand? Whatever I do I always end with implementation that either ignores hand’s rot…

---

## [More advanced lookAt?](https://discourse.threejs.org/t/more-advanced-lookat/43997)

<div class="topic-metadata">

**Author:** [@MeJayEss](https://discourse.threejs.org/u/MeJayEss)\
**Replies:** 3\
**Last updated:** [October 26, 2022, 8:36am UTC](https://discourse.threejs.org/t/more-advanced-lookat/43997 "2022-10-26T08:36:05Z")

</div>

I want to animate one of my animation models to turn and look at another object, but I want to do it over a certain amount of time (e.g. - 1 second), instead of using the lookAt() function to do it immediately. I found …

---

## [Rotate each buffer geometry that's merged by 'BufferGeometryUtils.mergeBufferGeometries' around each own center?](https://discourse.threejs.org/t/rotate-each-buffer-geometry-thats-merged-by-buffergeometryutils-mergebuffergeometries-around-each-own-center/29377)

<div class="topic-metadata">

**Author:** [@tktk](https://discourse.threejs.org/u/tktk)\
**Replies:** 14\
**Last updated:** [June 1, 2022, 6:07pm UTC](https://discourse.threejs.org/t/rotate-each-buffer-geometry-thats-merged-by-buffergeometryutils-mergebuffergeometries-around-each-own-center/29377 "2022-06-01T18:07:42Z")

</div>

I have a mesh made like this: var cubes = \[\] const boxGeometry = new THREE.BoxGeometry(1,1,1); const boxBufferGeometry = BufferGeometryUtils.mergeVertices(new THREE.BufferGeometry().copy(boxGeometry)) var geome…

---

## [Rotate mesh after dragging](https://discourse.threejs.org/t/rotate-mesh-after-dragging/23533)

<div class="topic-metadata">

**Author:** [@szalik](https://discourse.threejs.org/u/szalik)\
**Replies:** 1\
**Last updated:** [February 16, 2021, 2:16am UTC](https://discourse.threejs.org/t/rotate-mesh-after-dragging/23533 "2021-02-16T02:16:18Z")

</div>

Hi. I have a problem with the DragControls library. I use it to move objects and it works great. However, the problem arises when I want to rotate the object after moving it. It rotates on its original axis (the one on w…

---

## [Question about Z-axis](https://discourse.threejs.org/t/question-about-z-axis/22474)

<div class="topic-metadata">

**Author:** [@WUOUXIANG](https://discourse.threejs.org/u/WUOUXIANG)\
**Replies:** 1\
**Last updated:** [January 15, 2021, 5:04pm UTC](https://discourse.threejs.org/t/question-about-z-axis/22474 "2021-01-15T17:04:55Z")

</div>

When Exporting .obj , z-axis will be the vertical one … however, I saw many cases, the Vertical one is not z-axis ( Most are Y and X axis…). May anyone tell me the reason why ? thank you

---

## [Rotate Object to Parallel (or Vertical) to other Axis](https://discourse.threejs.org/t/rotate-object-to-parallel-or-vertical-to-other-axis/22466)

<div class="topic-metadata">

**Author:** [@WUOUXIANG](https://discourse.threejs.org/u/WUOUXIANG)\
**Replies:** 0\
**Last updated:** [January 15, 2021, 9:26am UTC](https://discourse.threejs.org/t/rotate-object-to-parallel-or-vertical-to-other-axis/22466 "2021-01-15T09:26:39Z")

</div>

Dear all If I want to Rotate object to parallel (vertical) to other aixs or other dimension (xy dimension or… xy dimension…) as Following Image Example… Is there any command or fu…

---

## [Align / Rotate all objects to make all same](https://discourse.threejs.org/t/align-rotate-all-objects-to-make-all-same/19708)

<div class="topic-metadata">

**Author:** [@R\_D](https://discourse.threejs.org/u/R_D)\
**Replies:** 6\
**Last updated:** [October 13, 2020, 6:20pm UTC](https://discourse.threejs.org/t/align-rotate-all-objects-to-make-all-same/19708 "2020-10-13T18:20:49Z")

</div>

Hey , So I have different objects . All are similar in shape but their rotations are different . For eg : Each Object has a circular shape , But each has variable rotations. I want to align them so that all have the s…

---

## [Rotate Loaded Object by 90 degrees within scene](https://discourse.threejs.org/t/rotate-loaded-object-by-90-degrees-within-scene/18664)

<div class="topic-metadata">

**Author:** [@tiarnola](https://discourse.threejs.org/u/tiarnola)\
**Replies:** 0\
**Last updated:** [September 13, 2020, 2:41pm UTC](https://discourse.threejs.org/t/rotate-loaded-object-by-90-degrees-within-scene/18664 "2020-09-13T14:41:27Z")

</div>

I have a three js scene which adds OBJ Models via button click. In order to increase interactivity, I want to be able to rotate these objects after they are added to the scene. Currently, I am using TransformControls wh…

---

## [Override Transform Controls Rotation Default Values](https://discourse.threejs.org/t/override-transform-controls-rotation-default-values/17626)

<div class="topic-metadata">

**Author:** [@SagacitySaga](https://discourse.threejs.org/u/SagacitySaga)\
**Replies:** 0\
**Last updated:** [August 4, 2020, 1:46pm UTC](https://discourse.threejs.org/t/override-transform-controls-rotation-default-values/17626 "2020-08-04T13:46:01Z")

</div>

I am trying to override the default (0,0,0) angle for Transform Controls in rotate mode. I am trying to create this kind of default angle without dragging first. Is this possible? Many Thanks.

---

## [Rotating an object](https://discourse.threejs.org/t/rotating-an-object/4307)

<div class="topic-metadata">

**Author:** [@hannahjn](https://discourse.threejs.org/u/hannahjn)\
**Replies:** 3\
**Last updated:** [September 30, 2018, 12:59pm UTC](https://discourse.threejs.org/t/rotating-an-object/4307 "2018-09-30T12:59:35Z")

</div>

I’m trying to rotate my 3d object. So far, it rotates in the way I want when the cursor is moving over the scene. However, I want to enable this functionality only when the mouse button is clicked. Live GitRepo:

---

## [Rotate object to mouse](https://discourse.threejs.org/t/rotate-object-to-mouse/4214)

<div class="topic-metadata">

**Author:** [@gooodWin67](https://discourse.threejs.org/u/gooodWin67)\
**Replies:** 5\
**Last updated:** [September 24, 2018, 1:09pm UTC](https://discourse.threejs.org/t/rotate-object-to-mouse/4214 "2018-09-24T13:09:44Z")

</div>

Hi. i have box, how to make the box turned towards the mouse. in this example i know coordinates, what do next?
