# How to set the camera rotation range in HOOPS Communicator？

**URL:** <https://forum.techsoft3d.com/t/how-to-set-the-camera-rotation-range-in-hoops-communicator/1691>\
**Category:** HOOPS Visualize Web\
**Created:** [March 8, 2023, 7:05am UTC](https://forum.techsoft3d.com/t/how-to-set-the-camera-rotation-range-in-hoops-communicator/1691 "2023-03-08T07:05:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![619944680](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/619944680/32/516_2.png) [@619944680](https://forum.techsoft3d.com/u/619944680)\
**Post date:** [March 8, 2023, 7:05am UTC](https://forum.techsoft3d.com/t/how-to-set-the-camera-rotation-range-in-hoops-communicator/1691/1 "2023-03-08T07:05:22Z")

</div>

I want to limit the rotation range of the camera.

For example, judge the rotation around the X axis or Y axis by the direction of mouse movement.

The effect is the same as in the link below. You can try to hold down the left mouse button to rotate the model in the link

> **[广联达BIMFACE-bim轻量化引擎赋能bim二次开发应用](https://bimface.com/developer-jsdemo#999)**
>
> 广联达BIMFACE作为国内领先的bim轻量化引擎,支持大体量bim+gis模型转换,开放上千条易用API帮助bim开发者搭建bim+gis+iot应用,提升您80%的研发效率，有需求随时致电021-54582093

---

<div class="post-metadata">

**Author:** ![guido](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/guido/32/115_2.png) [@guido](https://forum.techsoft3d.com/u/guido)\
**Post date:** [March 8, 2023, 12:52pm UTC](https://forum.techsoft3d.com/t/how-to-set-the-camera-rotation-range-in-hoops-communicator/1691/2 "2023-03-08T12:52:44Z")

</div>

The particular effect seen in the link (the camera rotating around the selection point) is available in the HOOPS Communicator Viewer by holding down the middle mouse button during rotation. You might also want to enable BIM orbit to constrain rotation. ([link](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Communicator.Operator.CameraOrbitOperator.html#Communicator.Operator.Communicator.Operator.CameraOrbitOperator.setBimOrbitEnabled))

Other than that if the functionality is not available in our standard orbit operator ([CameraOrbitOperator — HOOPS Communicator 2023 U1 Documentation](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Communicator.Operator.CameraOrbitOperator.html)), you will have to write your own operator to support it.
