Suggest dragging for x, y and tapping for z axis movement. But its not
clear exactly what your end-game is....
You could also use accelerometer for tipping (see Breakout Legend in
the App in mkt)

:) Droid


On Sep 6, 7:04 pm, Thiago Lopes Rosa <[email protected]> wrote:
> Hi,
>
> I have a cube on the center of the screen and the user can rotate it using
> the touchscreen.
>
> The problem:
> For example, when I rotate the cube 180 degrees (vertical), the horizontal
> rotation gets "inverted" (i mean, when moving right the cube rotates left
> and vice-versa).
>
> The issue is that I'm using 2D coordinates (touchscreen) to rotate the 3D
> cube.
> I'm always rotating around the cube's X and Y axis and never around the Z
> axis.
>
> The question is:
> How do I calculate how much and which axis to rotate from a 2D coordinate
> input?
>
> Thanks,
>
> Thiago

-- 
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

Reply via email to