I have added a rotation to the 3d asset. but it seems to be doesnt working. Can i know why? Might be a silly mistake.
Playground - https://playground.babylonjs.com/#FPXQNR#11
I have added a rotation to the 3d asset. but it seems to be doesnt working. Can i know why? Might be a silly mistake.
Playground - https://playground.babylonjs.com/#FPXQNR#11
Loaded glTFs are using rotation quaternions instead of euler angles:
Thank you, will check out!
Shortly,
task.loadedMeshes[0].rotationQuaternion = null
task.loadedMeshes[0].rotation.y = BABYLON.Tools.ToRadians(45);
(or the desired rotation angle in degrees)
Thank you! made it very easy