Simona Posted March 15, 2017 Share Posted March 15, 2017 Hello, I'm new to Babylon.js and I'm looking for a way to use the ArcRotateCamera AND move its target by arrow keys for example. I would like to rotate the camera around the scene and also to be able to look closely to left bottom corner for instance. Is it possible or am I making stuff up? Thank you :-) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 15, 2017 Share Posted March 15, 2017 Hey! you can use camera.setTarget(vector3) to control target Quote Link to comment Share on other sites More sharing options...
Simona Posted March 15, 2017 Author Share Posted March 15, 2017 1 minute ago, Deltakosh said: Hey! you can use camera.setTarget(vector3) to control target Yes, thank you. I do that, but I was wondering if the user can move the target of the camera as well, using some keys or right mouse button or something like that. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 15, 2017 Share Posted March 15, 2017 By default the ArcRotateCamera let you pan with the middle button of your mouse You can define which button to use and if CTRL key is required when attaching the camera: https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/babylon.arcRotateCamera.ts#L264 Simona 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.