How to convert the rotationQuaternion into Euler angles between 0 and 360 degrees

Good evening,everyone
The following methods can only be converted to radians

mesheRoot.rotationQuaternion.toEulerAngles()
ew BABYLON.Vector3(
            BABYLON.Tools.ToDegrees(x.x),
            BABYLON.Tools.ToDegrees(x.y),
            BABYLON.Tools.ToDegrees(x.z)
        );

The converted degree does not match the degree of unity
I need your help

4:40 AM here so good morning! :slight_smile:

You are using the good functions to convert radians to degrees so if there is still an issue check your inputs.

Here is a small PG demonstrating how you can get the degrees in a quaternion rotation:

Output:

What do you mean exactly?

ok,Maybe my angle conversion was wrong, I’ll try again.Thank you for your reply

1 Like