I use this class. Its awesome
http://pixelwelders.com/blog/actions...thquake-class/