ChrisT

05-08-2001, 11:14 AM

Hi,

I try to explain you my problem. I take an example. I have some cubes with different textures on each face. The goal is to rotate the cubes to built the good image like a puzzle. Now i want to know when someone wins the game i.e. when the cubes are in the correct orientation. I can store the 3 angles on x, y and z but as you preaphs know, making a rotation on y and on x and on z ... is not making a rotation on z and on y and on x. The order is important. So i can't only compare the actual x,y,z angles to some final x,y,z values. In other words, i can't say the cube is in the correct orientation for instance if x=250,y=120,z=30.

Is someone has an idea, it will help me very much.

thanks http://www.opengl.org/discussion_boards/ubb/smile.gif

I try to explain you my problem. I take an example. I have some cubes with different textures on each face. The goal is to rotate the cubes to built the good image like a puzzle. Now i want to know when someone wins the game i.e. when the cubes are in the correct orientation. I can store the 3 angles on x, y and z but as you preaphs know, making a rotation on y and on x and on z ... is not making a rotation on z and on y and on x. The order is important. So i can't only compare the actual x,y,z angles to some final x,y,z values. In other words, i can't say the cube is in the correct orientation for instance if x=250,y=120,z=30.

Is someone has an idea, it will help me very much.

thanks http://www.opengl.org/discussion_boards/ubb/smile.gif