mesh.rotate(BABYLON.Axis.Y, quaternion.toEulerAngles().z);
I’m going to convert the toEulerAngles() function from Java and return it.
Where can I see the formula or content of the function toEulerAngles()?
mesh.rotate(BABYLON.Axis.Y, quaternion.toEulerAngles().z);
I’m going to convert the toEulerAngles() function from Java and return it.
Where can I see the formula or content of the function toEulerAngles()?
Not sure I understand the Java part, but here’s the source code for Quaternion.toEulerAngles()
: Babylon.js/math.vector.ts at eabbf0131755fecc4f9f782e3038063e4a0b55eb · BabylonJS/Babylon.js · GitHub
You are my light
Thank you!