# Rotate camera

**URL:** <https://community.cesium.com/t/rotate-camera/269>\
**Category:** CesiumJS\
**Created:** [February 8, 2013, 7:04pm UTC](https://community.cesium.com/t/rotate-camera/269 "2013-02-08T19:04:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamy](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@Tamy](https://community.cesium.com/u/Tamy)\
**Post date:** [February 8, 2013, 7:04pm UTC](https://community.cesium.com/t/rotate-camera/269/1 "2013-02-08T19:04:10Z")

</div>

Hi!

I want to rotate the camera around the center of the screen.

If I have it:

[![](https://lh6.googleusercontent.com/-ggJslYFSjCw/URVLycLjzSI/AAAAAAAAAD0/ohcG0urWcxE/s320/cesium.png)](https://lh6.googleusercontent.com/-ggJslYFSjCw/URVLycLjzSI/AAAAAAAAAD0/ohcG0urWcxE/s1600/cesium.png)

After something like it:

_var cam = scene.getCamera().controller;_

_cam.rotate(scene.getCamera().position, Math.PI);_

I want to see it:

[![](https://lh6.googleusercontent.com/-WJDlRYF209M/URVL6EwYYuI/AAAAAAAAAD8/28kbWvObnRs/s320/cesium2.png)](https://lh6.googleusercontent.com/-WJDlRYF209M/URVL6EwYYuI/AAAAAAAAAD8/28kbWvObnRs/s1600/cesium2.png)

But with this code just the world rotates. There’s a way to do it?

Thanks!

---

<div class="post-metadata">

**Author:** ![Tamy](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@Tamy](https://community.cesium.com/u/Tamy)\
**Post date:** [February 14, 2013, 7:16pm UTC](https://community.cesium.com/t/rotate-camera/269/2 "2013-02-14T19:16:36Z")

</div>

I just read [Camera Tutorial](http://cesium.agi.com/2013/02/13/Cesium-Camera-Tutorial/), and…

_scene.getCamera().controller.twistRight(Math.PI/32);_

_scene.getCamera().controller.twistLeft(Math.PI/32);_

It’s what I need!
