On Saturday, August 27, 2011 12:28:59 PM UTC-4, Spooky wrote:
>
> When writing game code, what (if anything) is the difference between
> the accelerometer, G-Sensor, and Gravity Sensor?  I'd assumed that
> they were all different names for the same thing, until I pulled
> up specs on my Motorola Bravo (MB520), and found a device id for
> the accelerometer, an "Unsupported" for the Gravity Sensor, and
> no mention of a G-Sensor (which I'm guessing is a Gravity Sensor).
>
> Now I'm not so sure.  So, when writing game code, is there any real
> difference?  Are they basically the same thing?  Or are they
> completely different sensors?
>

You can probably safely assume that most devices will have an accelerometer, 
which measures gravity on 3 axes, as well as a compass.  Newer devices may 
have gyroscopes which can be more helpful for detecting different types of 
motion.

Here's a very helpful link which may describe more of what goes on with the 
sensors in phones, and which to use when, when available:

Sensor Fusion on Android Devices:
http://www.youtube.com/watch?v=C7JQ7Rpwn2k

 

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