Hi guys,

I am trying to find out whether there is a bug in JME3 or if I simply doing things wrong. I am trying to rotate a node every tick and then read out the orientation

Rotating the node:

float[] angles = new float[3];

angles[0] = (float) Math.toRadians(0);

angles[1] = (float) Math.toRadians(0);

angles[2] = (float) Math.toRadians(10);

Quaternion rot = new Quaternion(angles);

node.rotate(rot);

Reading the orientation:

float[] anglesOut = new float[3];

node.getLocalRotation().toAngles(anglesOut);

System.out.println(angles[2]);

When I let it run in the same rotation direction I see that a full 0-360 degree rotation is shown as 0 to 1.57 then from 1.57 to 0 (positive) then from 0 to -1.57 and then from -1.57 back to 0. I would expect the range to be 0 to 3.14 then 3.14 to 2*3.14 or alternatively, 0 to 3.14 then -3.14 to 0

Any thoughts on this? Thanks!