//i rotate the cube using the following //xRot,yRot are inc or decremented to change angles gl.glRotatef(xRot, 1.0f, 0.0f, 0.0f); gl.glRotatef(yRot, 0.0f, 1.0f, 0.0f);
So yes i have access to yRot and xRot but they numbers range from -900 to +900. I figure I can used them somehow to tell what is rotated but I am unsure how. i just pass them in and it magically rotates for me. so i am unsure how to tell from the numbers what angle the cube is at. can I take a trig function to them or what? or do i take the xRot % 360 and the remainder is what degree I am at. Or is xRot in radians so I must convert it. On Apr 3, 12:41 am, Marco Nelissen <[email protected]> wrote: > Since you're rotating and drawing the cube, shouldn't you have that > information in your app already? > > On Thu, Apr 2, 2009 at 7:30 PM, William <[email protected]> wrote: > > > Hi Folks, > > > I am drawing and rotating a cube. Is there a programmatic way to tell > > what side of the cube is facing me? > > > For example if I randomly spin the cube when done spinning. I want to > > know which face(s) I am looking at. 10% of face 1, 90% of face 2. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

