Janx Posted February 20, 2017 Share Posted February 20, 2017 Hi, I would like to use a right handed coordinate system (thanks for adding support for that in 2.5) with the Z-axis pointing upwards. I tried to set the upVector for ArcRotateCamera, but the Z-Axis isn't pointing upwards afterwards and the mouse control is acting weird. Here is an example: http://www.babylonjs-playground.com/#D4CDS Am I missing something? Thanks, Jan Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 21, 2017 Share Posted February 21, 2017 The mouse control is expecting to work in a Y-up world unfortunately. ArcRotateCamera won't change its position or target because of the up vector. It still looks at a target from a specific point on a sphere Quote Link to comment Share on other sites More sharing options...
Janx Posted February 21, 2017 Author Share Posted February 21, 2017 Hi Deltakosh, thanks for your reply. I found this old thread were @chadautry tried the same and it seems that he got it working, by switching y and z in two locations. I suppose his PR was never submitted? I guess the lines he linked to have changed by now. Do you think it would be still quite easy to pull it off, or has the camera changed that much? Many thanks, Jan Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 21, 2017 Share Posted February 21, 2017 Nope it should be accurate (While I did not test :)) 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.