Dad72 Posted June 18, 2014 Share Posted June 18, 2014 Hi, How to get the value x, y or z to rotate.you can write a value to rotate but not get the values. I wish I could save to a file value rotate an object (like rotation). Thanks Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 18, 2014 Share Posted June 18, 2014 mesh.rotation.x or .y or .z if using quaternion there are 4 values :mesh.rotationQuaternion.x or .y or .z or .w Quote Link to comment Share on other sites More sharing options...
Temechon Posted June 18, 2014 Share Posted June 18, 2014 One minute late... But I wanted to write the same thing I use it in one project : can canfirm, it works. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 18, 2014 Author Share Posted June 18, 2014 Yes, but the export models 3ds max, rotation does not work. so I use rotate following your advice DK rotationQuaternion has not the same value that rotation. By how much should be multiplied to get the rotation value when using rotationQuaternion ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 18, 2014 Share Posted June 18, 2014 there is no easy way to get a rotation from a quaternion (else I already did that in max ) Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 18, 2014 Author Share Posted June 18, 2014 else I already did that in max Great, I'll go see. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 18, 2014 Author Share Posted June 18, 2014 This does not change when I export to 3ds max. once in babylon, my model does not want to use the rotation. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 19, 2014 Share Posted June 19, 2014 because the mesh has a rotationQuaternion defined. If you want to use only mesh.rotation then set mesh.rotationQuaternion = null before Quote Link to comment Share on other sites More sharing options...
Wingnut Posted June 19, 2014 Share Posted June 19, 2014 http://www.html5gamedevs.com/topic/2571-the-wingnut-chronicles/?p=25295 ... might be useful. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 19, 2014 Author Share Posted June 19, 2014 Yes, it works perfectly well DK. Thank you very much. Thank you Wingnut for your help. 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.