fateriddle Posted November 5, 2018 Share Posted November 5, 2018 I import a mesh of animation girl, and trying to rotate her then move her in sequence. But the animation goes wild as girl rotate like 10 circles before she stays at the final key. Any reason for that and how do I fix? https://www.babylonjs-playground.com/#WGZLGJ#367 btw, I always wanna ask, how do you animate a mesh's scaling? Do you have to make 3 animations for scaling.x, scaling.y, scaling.z? Quote Link to comment Share on other sites More sharing options...
brianzinn Posted November 5, 2018 Share Posted November 5, 2018 Here is how to rotate that model.... I think if you see this PG you can hopefully get the answer to your second question: https://www.babylonjs-playground.com/#WGZLGJ#369 hint: You need to change the animation type Quote Link to comment Share on other sites More sharing options...
fateriddle Posted November 5, 2018 Author Share Posted November 5, 2018 3 hours ago, brianzinn said: Here is how to rotate that model.... I think if you see this PG you can hopefully get the answer to your second question: https://www.babylonjs-playground.com/#WGZLGJ#369 hint: You need to change the animation type Thanks. 1. Could you explain a bit why trying to change 'rotation.y' will result in such weird manner? 2. And when do I have to use rotationQuaternion to do the job? I see use case of 'rotation.y' here in this PG, and it works fine https://www.babylonjs-playground.com/#2L26P1#8 Quote Link to comment Share on other sites More sharing options...
JohnK Posted November 5, 2018 Share Posted November 5, 2018 2 hours ago, fateriddle said: And when do I have to use rotationQuaternion to do the job? https://doc.babylonjs.com/resources/rotation_conventions#warning Quote Link to comment Share on other sites More sharing options...
brianzinn Posted November 5, 2018 Share Posted November 5, 2018 10 hours ago, fateriddle said: And when do I have to use rotationQuaternion to do the job? You can set rotationQuaternion to null and your PG will work, too. I should have mentioned that... https://www.babylonjs-playground.com/#WGZLGJ#371 RotationQuaternion when available takes priority. trevordev 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.