Rotation not working in a 3d asset

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:

2 Likes

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)

Example - https://playground.babylonjs.com/#FPXQNR#12

1 Like

Thank you! made it very easy