Michael Scherotter Posted July 28, 2018 Share Posted July 28, 2018 I am using a photodome and I need to understand how to get or set the camera rotation so it looks at a specific part of the photo. Is there an event to handle when the camera rotation changes? Quote Link to comment Share on other sites More sharing options...
Guest Posted July 30, 2018 Share Posted July 30, 2018 Hey Michael, the camera used in the example (https://www.babylonjs-playground.com/#14KRGG#3) is an arcrotate one so you can just register your code with scene.registerbeforeRender() and check camera.alpha/ beta to detect or set the angle you want You can also force the camera to look at a specific position with camera.setTarget Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.