dancingmelon Posted February 19, 2018 Share Posted February 19, 2018 Hi, I've experienced weird problem when I try to rotate an imported gltf mesh. It turns super fast and seems not logic at all. Someone has any idea why? Or is it a bug? Here is the playground example to show this problem. Thank you. http://www.babylonjs-playground.com/#742772#3 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 19, 2018 Share Posted February 19, 2018 Hiya DM, welcome to the forum. https://www.babylonjs-playground.com/#742772#7 Wingnut screwing around. Changed from degrees of rotation... to rate of rotation. I also moved the entire GUI and stuff... inside the importMesh onSuccess code-block. (yawn) I know, not the objective, but I wanted to play with this WONDERFUL model. Back on subject: https://www.babylonjs-playground.com/#742772#8 Not so successful, yet. Still having problems keeping mesh in-sync. Fun challenge, though. Others will have more/better ideas, I'm sure. I'm a noob. Quote Link to comment Share on other sites More sharing options...
Samuel Girardin Posted February 20, 2018 Share Posted February 20, 2018 HI, I think you have to use rotationQuaternion : https://www.babylonjs-playground.com/#742772#10 sam Wingnut 1 Quote Link to comment Share on other sites More sharing options...
dancingmelon Posted February 20, 2018 Author Share Posted February 20, 2018 Thank you Wingnut and Sam for your quick replies. Quaternion is a brilliant solution although I still need to dig deeper into the math. PS: I'm so glad to join this forum and appreciate the warming welcome! Wingnut and GameMonetize 2 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.