The apple developer documentation explains the handled movement by this image :
I'm pretty confused now... because doing some tests i get that the Accelerometer doesn't handle translation on the axis but a little set of rotations ... in example if i move my device on the X
axe nothing happen .. if i rotate it on the Z
i get acceleration on X
.
Here the code i use for my test:
-(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration{
[self.sliderX setProgress:fabsf(acceleration.x)];
[self.sliderY setProgress:fabsf(acceleration.y)];
[self.sliderZ setProgress:fabsf(acceleration.z)];
}
Edit------ The behavior that i can't understand is wired to rotation on a single axe, as i said before... rotating on Z axe by 30 ° i get a continuous acceleration... while translating on X axe i get acceleration only for short and fast movement.