Great tutorial, many thanks. Nicely focused on the subject.
Forgive a possibly stupid question, as i am no expert in physics.
If I want to just respond to the user "shaking" the iPhone, say for dice, or like the iPod Nano does for switching to another random song, should I just check for a large difference (the delta) in the x, y, or z values ? Therefore, I should keep track of the previous values and then just check for a delta. Would there be an appropriate to check for, or maybe I should just test out different deltas and see how they work.
Many Thanks.
|