agmcleod Posted June 2, 2017 Share Posted June 2, 2017 Hi there, I was trying to generate some quat values i can use for fixing the rotation of a cube. Though I found that: (new BABYLON.Vector3(0, 0, degToRad(90))).toQuaternion() Results in the same quaternion as: (new BABYLON.Vector3(degToRad(90), 0, 0)).toQuaternion() Is this intended? Or is there a bug in the function? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 2, 2017 Share Posted June 2, 2017 Yep it is as we are using xoz plane to do the computation: https://github.com/BabylonJS/Babylon.js/blob/master/src/Math/babylon.math.ts#L1114 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.