Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't change camera rotation via code #435

Open
adamh99 opened this issue Dec 14, 2023 · 1 comment
Open

can't change camera rotation via code #435

adamh99 opened this issue Dec 14, 2023 · 1 comment

Comments

@adamh99
Copy link

adamh99 commented Dec 14, 2023

I would like to change the camera rotation by calling a method but i can't seem to get it working. Does it only work with mouse/keyboard/gyro??? Im in JS and setting camera.rotation, camera.viewMatrix and camera.quaternion doesn't do nothing. I also tried calling camera.updateMatrix() after changing values and nothing.

Thank you!

@EarhartZhao
Copy link

viewer.camera.animateTo({ yaw, pitch, zoom, duration }) , you can try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants