hawk_s Posted November 5, 2016 Share Posted November 5, 2016 Hey Guys, I intend to change the use of arrow keys for FreeCamera. I want the camera to rotate around its axis when pressing the left or right arrow keys as opposed to its current movement to left or right. How can i do this? I tried setting noPreventDefault to false in camera attachcontrol but it dosent seem to stop the movement of camera left or right. Am i missing something here? Thanks Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted November 5, 2016 Share Posted November 5, 2016 Hi @hawk_s Welcome to babylonjs! take a look at this (note that you have to click on the canvas first, before the key presses are registered) http://www.babylonjs-playground.com/#17DCNX#4 hawk_s 1 Quote Link to comment Share on other sites More sharing options...
hawk_s Posted November 5, 2016 Author Share Posted November 5, 2016 Thanks a lot @aWeirdo. This solves my problem. 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.