Themujin Posted March 24, 2017 Share Posted March 24, 2017 I am working on babylon for few days. and I am a beginner level on 3d libraries. I changed the upVector of ArcRotaionCamera. and now the z Axis is pointing up. but while dragging the mouse to move around it not working as expected. is there a way around this? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted March 24, 2017 Share Posted March 24, 2017 Hi @Themujin, welcome. Forum helpers REALLY like having playground demos that show the issue. I made one for you... http://www.babylonjs-playground.com/#1A64GI#2 upVector Z is set in line 32. And yes, mouse is acting... 'unusual'. I have no solution, but now we have a testing playground. Do edits, make more saves, paste more urls here, tell us about discoveries. You can't damage anything... by playing in the playground. Hopefully, smarter people than I... will comment soon. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 27, 2017 Share Posted March 27, 2017 Hello by default all controls consider that Y is up. but you can check here that angles are updated when moving the pointer: https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/Inputs/babylon.arcrotatecamera.input.pointers.ts#L106 So basically the idea would be to overwrite this function to provide a different behavior Wingnut 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.