IMO, I'd go with the accelerometer implementation. The reason being that for a rolling ball you could use the values for the X and Y axis, perhaps scale them a bit to meet your needs. I've done exactly that on a test application I was working on. Going with the orientation implementation, you would have to do some calculations to get the x and y forces, which would not be all that difficult.
It may be a matter of preference but for me the simple way seems to be to use the accelerometer. ~clark On Mar 23, 3:20 pm, Carl Whalley <[email protected]> wrote: > If I'm reading things right, the accelerometer measures physical > forces (i.e. movement) and the orientation sensor gives the tilt of > the handset. If you are coding a rolling ball type app which would you > use? You could argue accelerometer, in which case you measure each > delta force and apply it to your balls physics. Or just the > orientation and compute the effects of gravity again on the ball but > just using different physics. Is there a preference? Would any be more > accurate than the other? > > -- > Android Academyhttp://www.androidacademy.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

