Sunday, August 28, 2011

[android-developers] Re: Accelerometer vs Gravity Sensor in game code?

> They could be referring to a gyroscope sensor.
Probably not. G-sensor is usually referring to the accelerometer and
has to do with measuring the gravity combined with the linear
acceleration of the device. The gyroscope is for measuring rotational
speed.

For tilt based games such as Doodle Jump and Labyrinth, the
accelerometer is perfect. First person 3D games and augmented reality
apps might want to use the gyroscope (possibly combined with
accelerometer and compass) for higher accuracy.

On 27 Aug, 21:21, Christopher Van Kirk <christopher.vank...@gmail.com>
wrote:
> They could be referring to a gyroscope sensor. The new Samsung devices
> have those now in addition to the accelerometer.
>
> On 8/28/2011 12:28 AM, Jim Graham 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?
>
> > In trying to find the answer myself, I found a lot of discussios
> > that went like this:
>
> >     An accelerometer is [this], and a G-sensor is [that].
> >     An accelerometer is [that], and a G-sensor is [this].
> >     An accelerometer is [that], and a G-sensor is [this].
> >     An accelerometer and a G-sensor are the same thing.
> >     An accelerometer is [that], and a G-sensor is [this].
> >     An accelerometer is [this], and a G-sensor is [that].
> >     An accelerometer is [that], and a G-sensor is [this].
> >     An accelerometer and a G-sensor are the same thing.
> >     An accelerometer is [this], and a G-sensor is [that].
>
> > and so on, ad nauseum....
>
> > Is there an authoritative answer out there?
>
> > Later,
> >     --jim

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate