I am trying to figure out how I can go about detecting a quick rocking motion of the device without too much luck. Basically, there are two motions I want to detect; a rocking of the device away from the user ( quick tilt down then back up) and rocking towards the user (quick tilt up and then back down).
I have tried using the event.yInstant property of an accelerometer runtime event, but it doesn’t seem to be giving me what I am looking for.
Any advice or direction is greatly appreciated.
All the best,
Alan