valepu Posted May 11, 2016 Share Posted May 11, 2016 Hello, Using a playground taken from this thread as reference http://www.babylonjs-playground.com/#1FE2KF In this playground if you click on a cube it will switch camera. I have noticed that if you drag the scene around then change camera by clicking on a cube the last movement done on the previous camera will be executed on the new camera too. Is there a way to prevent this? This also happen if you change scene: - You are on scene 1 - go on scene 2 - drag the camera - go back to scene 1 scene 1's camera will move too as soon as you go back to that scene It doesn't happen if you move the camera using the keyboard, though Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 11, 2016 Share Posted May 11, 2016 Hey! You need to detachControl the camera before changing the active camera else all cameras will capture the mouse Quote Link to comment Share on other sites More sharing options...
valepu Posted May 11, 2016 Author Share Posted May 11, 2016 That worked thanks 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.