# Is camera.lookAt() prefer to use to change object position/rotation?

**URL:** <https://discourse.threejs.org/t/is-camera-lookat-prefer-to-use-to-change-object-position-rotation/22530>\
**Category:** Questions\
**Tags:** math\
**Created:** [January 18, 2021, 6:10am UTC](https://discourse.threejs.org/t/is-camera-lookat-prefer-to-use-to-change-object-position-rotation/22530 "2021-01-18T06:10:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quan\_Le](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/quan_le/32/36133_2.png) [@Quan\_Le](https://discourse.threejs.org/u/Quan_Le)\
**Post date:** [January 18, 2021, 6:10am UTC](https://discourse.threejs.org/t/is-camera-lookat-prefer-to-use-to-change-object-position-rotation/22530/1 "2021-01-18T06:10:38Z")

</div>

Hi all,

Does the `camera.lookAt()` is prefer to use when we want to change position and/or rotation of the 3D object?  
Some say it is not recommended to use since this function may change camera `projectionMatrix` 🤔 , then we probably need to update camera projectionMatrix as well?

Am I getting wrong?  
Thanks,

---

<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:** [January 18, 2021, 9:40am UTC](https://discourse.threejs.org/t/is-camera-lookat-prefer-to-use-to-change-object-position-rotation/22530/2 "2021-01-18T09:40:05Z")

</div>

`lookAt()` does only change the orientation of a 3D object.

It does not influence the projection matrix.

---

<div class="post-metadata">

**Author:** ![Quan\_Le](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/quan_le/32/36133_2.png) [@Quan\_Le](https://discourse.threejs.org/u/Quan_Le)\
**Post date:** [January 18, 2021, 9:59am UTC](https://discourse.threejs.org/t/is-camera-lookat-prefer-to-use-to-change-object-position-rotation/22530/3 "2021-01-18T09:59:57Z")

</div>

Thanks @Mugen87  
So is it prefer to use to change the position or rotation of the 3D object?  
Since we have many other ways to do such kind of thing.

---

<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:** [January 18, 2021, 10:58am UTC](https://discourse.threejs.org/t/is-camera-lookat-prefer-to-use-to-change-object-position-rotation/22530/4 "2021-01-18T10:58:07Z")

</div>

> [@Quan\_Le](#):
>
> So is it prefer to use to change the position or rotation of the 3D object?

Like I said one post earlier it does **not** change the position.

If `lookAt()` is your preferred approach for changing the orientation mainly depends on the use case.
