benjydel Posted February 25, 2016 Share Posted February 25, 2016 Hi ! I'm new on this forum. I have 3 questions question about the arcRotationCamera : - can i disable the invert rotation when the wheel reach the center of the scene ? - can i move the camera when i move with the right click ? - can i disable the key down action on the camera ? I tried to change the function _onkeydown with : "camera._onkeydown = function() {return;} but it doesn't work. Thanks a lot ! ps: sorry for my english, i am french Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted February 26, 2016 Share Posted February 26, 2016 hi it is just my fast solution i think you need search more 1. camera.lowerRadiusLimit = 0.000001; 2. move like freeCamera your mean? 3. camera.keyDown = null it work but you have error log in console ps: sorry for my english, i am persian http://www.babylonjs-playground.com/#2HNGON#1 benjydel 1 Quote Link to comment Share on other sites More sharing options...
Temechon Posted February 26, 2016 Share Posted February 26, 2016 How to disable for all keys : http://www.babylonjs-playground.com/#2HNGON#2 NasimiAsl, jerome and benjydel 3 Quote Link to comment Share on other sites More sharing options...
benjydel Posted February 27, 2016 Author Share Posted February 27, 2016 On 26/2/2016 at 7:13 AM, NasimiAsl said: hi it is just my fast solution i think you need search more 1. camera.lowerRadiusLimit = 0.000001; 2. move like freeCamera your mean? 3. camera.keyDown = null it work but you have error log in console ps: sorry for my english, i am persian http://www.babylonjs-playground.com/#2HNGON#1 Thanks a lot for the lowerRadiusLimit, it works well ! No i don't mean like freeCamera, I mean when you click on the right button, the camera move on one axis. Ok for the camera.keyDown but it's not a really good way, i think that i will only put some quote next to the eventListener to disable it in babylon.js Thanks Quote Link to comment Share on other sites More sharing options...
Dad72 Posted February 27, 2016 Share Posted February 27, 2016 Hi and welcome, For question 2. You can do many of the different ways. change camera eg right click. It's up to you to determine what you want to do the right click of the trigger as a swithActiveCamera (cam, true) for the result wish. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 27, 2016 Share Posted February 27, 2016 Hi guys. Dad72, do you have time to make a playground that shows right-click-drag... that only moves one axis of the ArcRotate cam, and works correctly in most major browsers? (thx) If not, it's cool. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted February 27, 2016 Share Posted February 27, 2016 Hi Wingnut, Something has been done like this. http://ssatguru.appspot.com/babylonjs/EditControl/webapp/index.html The source code is here https://github.com/ssatguru/BabylonJS-EditControl/blob/master/webapp/js/org/ssatguru/babylonjs/component/EditControl.js Quote Link to comment Share on other sites More sharing options...
jerome Posted February 29, 2016 Share Posted February 29, 2016 @Temechon : setting the camera.keysXXX to null triggers many errors in the console in Chrome (not FF) Quote Link to comment Share on other sites More sharing options...
Temptation Posted September 3, 2016 Share Posted September 3, 2016 //EDIT Solved 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.