drtobal Posted December 22, 2014 Share Posted December 22, 2014 Hello,I am starting with babylon, and i have a question.I am using the ArcRotateCamera and i am very according with it, but i want to disable left-click to rotate, I've been looking for any solution on the documentation, but I have not found.Many thanks in advance. Quote Link to comment Share on other sites More sharing options...
Meulta Posted December 23, 2014 Share Posted December 23, 2014 Hello drtobal, Welcome to Babylon.js ! If you do not call attachControl on the camera, it should not left-click rotate anymore, like in the sample here : http://www.babylonjs-playground.com/#1035G1 Meulta Quote Link to comment Share on other sites More sharing options...
drtobal Posted December 24, 2014 Author Share Posted December 24, 2014 yes, but i want to maintain the right click rotation. in other words, rotate with right click only. sorry for not explaining well above. thanks. Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted December 24, 2014 Share Posted December 24, 2014 Hey, You should modify the ArcRotateCamera's JS code in "attachControl", to verify if "evt.button == 2" in the function "this._onPointerDown". If not, I don't know ^^ MarianG 1 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.