Get the rotation degree from x y z scene axis

Hi all

How to get rotations degrees from world scene x y z axis?

first grab the worldRotation of your object (there is a getWorldRotation on the Spatial calss)

there is a toAngle() method in the Quaternion class that return an array of 3 floats : pitch, yaw and roll. those can be considered as the x,y,z axis



those angles are in radians though so you have to convert them in degrees by multiplying them by the FastMath.RAD_TO_DEG constant