# Rotate CameraControls around X and Z axes

**URL:** <https://discourse.threejs.org/t/rotate-cameracontrols-around-x-and-z-axes/49305>\
**Category:** Questions\
**Tags:** geometry\
**Created:** [March 19, 2023, 3:34pm UTC](https://discourse.threejs.org/t/rotate-cameracontrols-around-x-and-z-axes/49305 "2023-03-19T15:34:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nhu.Truong](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/nhu.truong/32/34357_2.png) [@Nhu.Truong](https://discourse.threejs.org/u/Nhu.Truong)\
**Post date:** [March 19, 2023, 3:34pm UTC](https://discourse.threejs.org/t/rotate-cameracontrols-around-x-and-z-axes/49305/1 "2023-03-19T15:34:52Z")

</div>

Hi, community,  
Currently, I’m using CameraControls from react-three/drei. I can rotate the camera around an axis passing through the center and perpendicular to the top and bottom (y-axis) by adjusting the azimuth angle. However, I don’t know how to adjust the camera to rotate around an axis passing through the center and perpendicular to the side faces (x, z axes). I appreciate any help from you. Thank you.

[https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/0/3/03c6795be40691f01563cb958e38ab6121424ee9.mp4](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/0/3/03c6795be40691f01563cb958e38ab6121424ee9.mp4)
