prevent glitching into floor when rotating