Dad72 Posted January 25, 2016 Share Posted January 25, 2016 Hello, On my editor, the gold of a rotation with a qizmo, I get values in Quaternion, I then converted the value for Euler (with toEulerAngles()) displayed in a property editor. So far all is ok. Now if I change, values the property editor (which are Euler), I would change the rotation of the object in Quaternion. My question is how to convert a value Euler Quaternion. (Quaternion to Euler, works well but Euler to Quaternion ???) Thanks for your help Quote Link to comment Share on other sites More sharing options...
Samuel Girardin Posted January 25, 2016 Share Posted January 25, 2016 Hi dad, Maybe try that : var q = BABYLON.Quaternion.RotationYawPitchRoll(mesh.rotation.y, mesh.rotation.x, mesh.rotation.z); mesh.rotationQuaternion = q; Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 25, 2016 Author Share Posted January 25, 2016 I'm going to try. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 25, 2016 Author Share Posted January 25, 2016 Yes, it works well. Thank you very much Samuel. 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.