# Rotation of camera based on 0 to 360

**URL:** https://discourse.vtk.org/t/rotation-of-camera-based-on-0-to-360/6464
**Category:** Support
**Created:** [August 25, 2021, 7:17pm UTC](https://discourse.vtk.org/t/rotation-of-camera-based-on-0-to-360/6464 "2021-08-25T19:17:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Rutvik\_Chauhan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rutvik_chauhan/32/3852_2.png) [@Rutvik\_Chauhan](https://discourse.vtk.org/u/Rutvik_Chauhan)
#### Post date: [August 25, 2021, 7:17pm UTC](https://discourse.vtk.org/t/rotation-of-camera-based-on-0-to-360/6464/1 "2021-08-25T19:17:37Z")

</div>

Hello,  
I am trying to do camera rotation based on 0 to 360 degree heading in which 0 shows the north direction. But I found out that in vtkCamera, 0 will start from its current rotation and it’s rotation is based on focal point of the camera. So how can I fix a direction of camera for example 0 degree at North and then clockwise or anti-clockwise it will increase, and when I rotate camera to 90 it will rotate in some direction and again rotate 0, it will go to original rotation. I came across vtkGeoCamera but it seems it is not available in current version of Vtk.

Thank you.
