Objective C: Accelerometer directions -
i'm trying detect shaking motion in , down direction this:
/ \ | ________________________________ | | | | | | |o | | | | | |______________________________| | \ / -(void) bounce:(uiacceleration *)acceleration { nslog(@"%f",acceleration.x); }
i thinking it's x axis responds if turn parallel floor. how detect this?
i don't have direct answer you, great experiment make quick app spews numbers out onto screen or file (or both). shake way want detect, , see set has greatest change.
Comments
Post a Comment