How to get vector rotated by specyfic angle?
I am trying to make vector for my animation blend tree when my character is moving around while looking at target. My blend tree takes vector2 and from its components blends animation i have made. I have animation for walking forward, backward, left and right. But i dont know how to get this vector. I tried to do it this way. I have vector pointing on target and also i have vector that my character is moving. So i decided to get angle beetwen this vectors and rotate moving vector by this angle. And it is not working. I get not correct vector. http://imgur.com/a/FSffe Help me pls.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612133036im_/https://answers.unity.com/themes/thub/images/avi.jpg)