rotation and hit detecton