Sudoku Posted December 7, 2018 Share Posted December 7, 2018 Hi, does someone know how to implement a camera roll with the arcrotatecamera? I am thinking it might be the rotation property, but i tried to set it and it didn't work... so i am not talking about the alpha and beta attributes but there must be another one Quote Link to comment Share on other sites More sharing options...
Guest Posted December 7, 2018 Share Posted December 7, 2018 Hello! You can play with camera.upVector (which is (0,1,0) by default): https://www.babylonjs-playground.com/#2FNBTG#27 Quote Link to comment Share on other sites More sharing options...
Sudoku Posted December 7, 2018 Author Share Posted December 7, 2018 cool, thanks for that. i guess i need combine that with: camera.updateUpVectorFromRotation = true; because i need to be able to set the camera to any position and keep the camera-roll. But somehow i can't get it work. Here is a PG: https://www.babylonjs-playground.com/#12WBC#334 Quote Link to comment Share on other sites More sharing options...
Guest Posted December 7, 2018 Share Posted December 7, 2018 You can simply rotate the upVector: https://www.babylonjs-playground.com/#12WBC#335 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.