Hartha Posted May 11, 2018 Share Posted May 11, 2018 Hi everyone, Before my question, I find this forum very helpful, so thank you very much my questing is, what is the best way to separate the mouse input for active cameras, in this playground https://playground.babylonjs.com/#PBEA2U the two cameras move syn with each other, I wanna to move the right camera when the mouse is on the right side, and move the left camera when the mouse is on the left side. Thanks. Quote Link to comment Share on other sites More sharing options...
JohnK Posted May 11, 2018 Share Posted May 11, 2018 Youneed to determine which part of the scene (or screen) the mouse is over and detach and attach the camera appropriately. For your simple left right viewports https://playground.babylonjs.com/#PBEA2U#1 Wingnut and Hartha 2 Quote Link to comment Share on other sites More sharing options...
Hartha Posted May 11, 2018 Author Share Posted May 11, 2018 Thank you @JohnK. 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.