This is some sort of slope detection thing, it angles the cat based on the slope it's standing on. This could use work, i might try and improve it, but for now it's fine. My main problem was (and still is) positioning the cat. The direction is almost always perfect, but the position isn't. Ok this needs a lot of work
Press space to see the positioning points.