Fixed an issue with animations and angles

Todo: fix rotation