First thing,
i want to rotate block left-right , right-left, top-bottom and bottom-top.
See figure-1 one cube is their and all axis.
when i rotate top to bottom (black arrow) cube z angle changed (red arrow) and get figure-2 this all work fine.
see figure-2
after that i move left to right rotate (black arrow) cube x angle change but at this time rotation is wrong beacuse of after first rotation all axis changed. and result is figure-3.
see figure 3 i am getting this position and movement (see red arrow),
but i want exact figure-4 that not getting me.
check code file
and video file is link text
( in this video cube movement show and also show you true rotation and wrong rotation)
please help me solve this.
Thnx