Ai animation rotation and collison

It’s possible that it’s not your programming but the collision primitive(s) on your character that are causing both problems. Have you checked whether they’re shaped as expected and are on the appropriate collision channel(s)?