Home >Backend Development >PHP Tutorial >What is the difference between position and lookAt() in three.js?

What is the difference between position and lookAt() in three.js?

WBOY
WBOYOriginal
2016-12-01 00:25:361300browse

I am looking at three.js recently, but when I am learning camera, this place is not very clear. Please help everyone
What is the difference between position and lookAt() in three.js?

Reply content:

I am looking at three.js recently, but when I am learning camera, this place is not very clear. Please help everyone
What is the difference between position and lookAt() in three.js?

  • position corresponds to the position of the camera in space

  • camera.lookAt() corresponds to the rotation angle (rotation) of the camera, that is, rotate the camera towards that position

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn