On 5 August 2010 12:30, akram <[email protected]> wrote: > i'm created an application where it consists of 3d rotating cube I > want to move the cube with respect to the drag on the screen > > In the on touch Listener I'm able to get the x,y coordinates but i don > Know how to make those coordinates to map to 3d space.
You can't map smaller domain (x,y) to higher domain (x,y,z). You can aproximate, estimage or fake, but not map. You can i.e. try to detect horizontal sweeps and rotate cube along vertical axis, and detect vertical sweepes and rotate along horizontal axis. Stil one axis left untouched unless you want to write code to detect circle sweepes. -- 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

