Jump to content

Problem ArcRotateCamera (only 3 little questions)


benjydel
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 ;)

Link to comment
Share on other sites

  • 6 months later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...