-
Hello, Looking for some help... How do you rotate the camera/scene so that a particular point is positioned in the center of the screen? context: https://www.3dvirtualexhibition.com/demo As you press the tab key (or click on an info icon). The focus should shift between the Info icons... the camera should rotate so that the icon that is focused/clicked is in the center of the screen? I've tried using camera.lookAt(vector3)... alas, it doesn't work as expected. Thanks in advance for any help. |
Beta Was this translation helpful? Give feedback.
Answered by
magicspon
Jan 30, 2022
Replies: 1 comment
-
sorted: useFrame((state) => {
state.camera.lookAt(vector3)
state.camera.updateProjectionMatrix()
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
magicspon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sorted: