SO!
I was wondering if you could help me to solve one problem:
I've got a cube, which can be rotated in three axis. I can get information about cube's rotation which is an array of three angles from 0 to 2PI.
The question is: how can I identify, which side of cube is in the bottom from those three euler angles?
I think the perfect function would be something like that:
function getSideFromAngles(x,y,z) {
// magic goes here
// for example getSideFromAngles(Math.PI/2, 0, 0)
// if x===PI/2 and y===0 and z===0 then return "front"
// which means front side of cube "looks" down now.
}
Just in case - Three.js also allows me to get quaternions of the cube.
Thanks in advance for you help