gamedev44 Posted December 5, 2018 Share Posted December 5, 2018 When I use a mouse it rotates the camera as expected., but if I hold the mouse down the camera will drift forward or backward. How can I disable the movement based on the mouse input? I just want the mouse to rotate the camera and leave the movement to key input. Quote Link to comment Share on other sites More sharing options...
JohnK Posted December 5, 2018 Share Posted December 5, 2018 Hi @gamedev44 and welcome to the forum. Have you seen this https://doc.babylonjs.com/how_to/customizing_camera_inputs in the docs? hi Quote Link to comment Share on other sites More sharing options...
gamedev44 Posted December 5, 2018 Author Share Posted December 5, 2018 Hi, Yes i looked at that but I thought there might be a simpler way of turning off the movement. Thanks Quote Link to comment Share on other sites More sharing options...
Sebavan Posted December 5, 2018 Share Posted December 5, 2018 This seems related to your other issue: So could you confirm you are willing to disable touch rotation and mouse drift/strafe when clicked ? Quote Link to comment Share on other sites More sharing options...
gamedev44 Posted December 6, 2018 Author Share Posted December 6, 2018 I decided to use the arcrotate camera so the user experience would be the same on mobile and desktop...thanks 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.