EulerAngles, Quaterions and LocalRotation

Hello,



can I use the angles I get from quaterions directly for my localRotation methods? Something like this…



[java]

float[] angles=myQuaterion.toAngles(null);

mySpatial.setLocalRotationX((float)Math.toDegrees(angles[0]));

mySpatial.setLocalRotationY((float)Math.toDegrees(angles[1]));

mySpatial.setLocalRotationZ((float)Math.toDegrees(angles[2]));

[/java]



If I would have to bet, I would say no.



Thanks.



Regards,

Equi

Its radians but apart from that it should work.