# Cannot change camera rotation (default position)

**URL:** <https://discourse.threejs.org/t/cannot-change-camera-rotation-default-position/11494>\
**Category:** Questions\
**Tags:** orbit-controls\
**Created:** [December 9, 2019, 7:27pm UTC](https://discourse.threejs.org/t/cannot-change-camera-rotation-default-position/11494 "2019-12-09T19:27:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikejernil](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mikejernil/32/8304_2.png) [@mikejernil](https://discourse.threejs.org/u/mikejernil)\
**Post date:** [December 9, 2019, 7:27pm UTC](https://discourse.threejs.org/t/cannot-change-camera-rotation-default-position/11494/1 "2019-12-09T19:27:02Z")

</div>

I’ve been wanting to change the camera position to show my model in a clear view. For that I need to rotate my camera. tried the camera.rotation.y method. Doesn’t seem to change the rotation of the camera.

```
        var size = new THREE.Vector3().subVectors(bbox.max, bbox.min);
        self.renderer.camera.position.set(0, 0, 2 * Math.max(Math.abs(size.x), Math.max(Math.abs(size.y), Math.abs(size.z))));

        self.renderer.camera.far = 3 * self.renderer.camera.position.z;
        self.renderer.camera.near = self.renderer.camera.position.z / 100;
        self.renderer.camera.rotation.y = 90*Math.PI/180;
        self.renderer.camera.updateProjectionMatrix();
        self.renderer.controls.update();
```

---

<div class="post-metadata">

**Author:** ![DolphinIQ](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/dolphiniq/32/3510_2.png) [@DolphinIQ](https://discourse.threejs.org/u/DolphinIQ)\
**Post date:** [December 9, 2019, 11:43pm UTC](https://discourse.threejs.org/t/cannot-change-camera-rotation-default-position/11494/2 "2019-12-09T23:43:46Z")

</div>

Hi  
I noticed `self.renderer.controls.update()` in your code and wondered if you’re using `OrbitControls`.  
If that’s the case, you could try:

> ```
> self.renderer.camera.lookAt( myModel.position );
> self.renderer.controls.target.copy( myModel.position );
> 
> ```

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [December 10, 2019, 12:44pm UTC](https://discourse.threejs.org/t/cannot-change-camera-rotation-default-position/11494/3 "2019-12-10T12:44:13Z")

</div>

> [@mikejernil](#):
>
> Doesn’t seem to change the rotation of the camera.

Yo can’t transform the camera if you later call `controls.update()`. `OrbitControls` will overwrite anything what you have applied so far. So one simple solution is to not update the controls if you are transforming the camera by yourself:

> **[Edit fiddle - JSFiddle - Code Playground](https://jsfiddle.net/92qprtdw/)**
>
> Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
