iphone - Accelerometer detecting side to side movements -
can please give me example of how detect if iphone moving left or moving right. long version of shake want app able know if users arm going right or left. imagine hand window wiper phone @ end
any ideas?
thanks, sam :p
that acceleration.x value. imagine 3 lines going through iphone: 
 1) line perpendicular iphone screen , going through it, z. 
 2) horizontal , parallel line screen, x (what you're looking for). 
 3) vertical , parallel line screen, y. 
so, moving iphone left or right generate changes in x graph. moving iphone or down generate changes in y graph. moving iphone forward or backward generate changes in z graph. 
 hope helps grasp accelerometer's concept, 
 ~ natanavra.
Comments
Post a Comment