Shake Detection

Monkey Forums/Monkey Code/Shake Detection

NoOdle(Posted 2011) [#1]
As the title says, this will detect a shake.




matt(Posted 2011) [#2]
Thanks for this. I'll try it out soon.


NoOdle(Posted 2011) [#3]
Its very basic, it could be improved by checking if the last shaken velocity was in the opposite direction, but this seems to work fine.


matt(Posted 2011) [#4]
It might be more useful as an importable module/class?


NoOdle(Posted 2011) [#5]
yea it probably would, need to work on a gesture module soon but too busy trying to finish my current game. If only I had more me's! :P