# Stop camera lookAt function

**URL:** <https://discourse.threejs.org/t/stop-camera-lookat-function/26495>\
**Category:** Questions\
**Tags:** lookat\
**Created:** [May 21, 2021, 8:03am UTC](https://discourse.threejs.org/t/stop-camera-lookat-function/26495 "2021-05-21T08:03:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAUMIK\_RANA](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/raumik_rana/32/12395_2.png) [@RAUMIK\_RANA](https://discourse.threejs.org/u/RAUMIK_RANA)\
**Post date:** [May 21, 2021, 8:03am UTC](https://discourse.threejs.org/t/stop-camera-lookat-function/26495/1 "2021-05-21T08:03:46Z")

</div>

I set,

`camera.lookAt(0,0,0)`

so that camera rotation changes according to camera position.

but at some point I want to deactivate this facility.  
I want to change camera position without affecting camera rotation?

please help with that

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [May 21, 2021, 9:09am UTC](https://discourse.threejs.org/t/stop-camera-lookat-function/26495/2 "2021-05-21T09:09:42Z")

</div>

> [@RAUMIK\_RANA](#):
>
> but at some point I want to deactivate this facility.

Well, why don’t you stop calling the method in your code?

---

<div class="post-metadata">

**Author:** ![RAUMIK\_RANA](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/raumik_rana/32/12395_2.png) [@RAUMIK\_RANA](https://discourse.threejs.org/u/RAUMIK_RANA)\
**Post date:** [May 21, 2021, 1:27pm UTC](https://discourse.threejs.org/t/stop-camera-lookat-function/26495/4 "2021-05-21T13:27:09Z")

</div>

actually I want to move camera to different views with animation.  
I used orbitControls which set controls.object.lookAt(scene.position).  
so camera rotates it self to always face at origin/  
as you can see in video it works fine for all of the view other than top and bottom view.

camera rotate around z-axis in last.

so that I tried to build function in which I desabled controls and move camera postion to desired location.  
during same time I interpolate camera rotation to desired rotation.  
but due to lookAt function camera rotation is overwrite to face origin.

[https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/2/3/2379abae8bea79f48d28ca75e2b920201e0b07f7.mp4](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/2/3/2379abae8bea79f48d28ca75e2b920201e0b07f7.mp4)

---

<div class="post-metadata">

**Author:** ![pantchayan](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pantchayan/32/22673_2.png) [@pantchayan](https://discourse.threejs.org/u/pantchayan)\
**Post date:** [December 7, 2021, 3:46am UTC](https://discourse.threejs.org/t/stop-camera-lookat-function/26495/5 "2021-12-07T03:46:46Z")

</div>

Did you get any solution to this? I am facing a similar problem.

---

<div class="post-metadata">

**Author:** ![hblee](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/hblee/32/19532_2.png) [@hblee](https://discourse.threejs.org/u/hblee)\
**Post date:** [December 7, 2021, 5:41am UTC](https://discourse.threejs.org/t/stop-camera-lookat-function/26495/6 "2021-12-07T05:41:32Z")

</div>

Stop calling update() after disable the control.

```javascript
if (!disabled) {
   control.update()
}

```
