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
Release: 2023-03-01 17:06:01
Original
1299 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template