# Rotate camera in phaser 2

**URL:** <https://phaser.discourse.group/t/rotate-camera-in-phaser-2/8234>\
**Category:** Phaser 2 / CE\
**Created:** [November 28, 2020, 4:49am UTC](https://phaser.discourse.group/t/rotate-camera-in-phaser-2/8234 "2020-11-28T04:49:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nilesh\_Shripal](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/nilesh_shripal/32/1127_2.png) [@Nilesh\_Shripal](https://phaser.discourse.group/u/Nilesh_Shripal)\
**Post date:** [November 28, 2020, 4:49am UTC](https://phaser.discourse.group/t/rotate-camera-in-phaser-2/8234/1 "2020-11-28T04:49:25Z")

</div>

Hello there, how I’m working on Phaser v2.9.2 version.

How can I rotate camera in phaser 2 to just like in official example in phaser 3

> **[Phaser - Examples - Rotate Camera](https://phaser.io/examples/v3/view/camera/rotate-camera)**
>
> Desktop and Mobile HTML5 game framework. A fast, free and fun open source framework for Canvas and WebGL powered browser games.

Thanks

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [December 1, 2020, 5:59pm UTC](https://phaser.discourse.group/t/rotate-camera-in-phaser-2/8234/2 "2020-12-01T17:59:50Z")

</div>

Set [game.world.rotation](https://photonstorm.github.io/phaser-ce/Phaser.World.html#rotation). It can only rotate around (0, 0), I think.

---

<div class="post-metadata">

**Author:** ![Nilesh\_Shripal](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/nilesh_shripal/32/1127_2.png) [@Nilesh\_Shripal](https://phaser.discourse.group/u/Nilesh_Shripal)\
**Post date:** [December 2, 2020, 7:30am UTC](https://phaser.discourse.group/t/rotate-camera-in-phaser-2/8234/3 "2020-12-02T07:30:22Z")

</div>

Hello there, thanks for your response. Yes it is rotating around (0,0)

How can I rotate camera from center of screen ?

Thanks.

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [December 2, 2020, 6:31pm UTC](https://phaser.discourse.group/t/rotate-camera-in-phaser-2/8234/4 "2020-12-02T18:31:53Z")

</div>

You must position around (0, 0).

https://codepen.io/samme/embed/preview/abmvGGR?height=300&slug-hash=abmvGGR&default-tabs=js,result&host=https://codepen.io
