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

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 :thinking: , then we probably need to update camera projectionMatrix as well?

Am I getting wrong?

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

It does not influence the projection matrix.

1 Like

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.

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.

1 Like