It looks to me as if you are dealing with different rotations in the top and

bottom image. The axisAngle in the top image indicates which axis the cube has

been rotated around from its rest position, and by how many degrees. The

bottom image shows three rotations (H, P and B), not an axisAngle.

Perhaps you would get the results you are expecting if you used the

..transform.rotation property of the cube model. This returns a vector

containing 3 angles: rotation around the x-axis, rotation around the y-axis and

rotation around the z-axis. All these angles are already in degrees.

Note that, to get to the desired orientation, the rotations are applied in

order: first around the x-axis, then around the y-axis and lastly around the

z-axis. Also, there are an infinite number of ways to arrive at the final

rotation, so two transforms with different .rotation values may in fact have

the same orientation.

## Bookmarks