Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | LiesLiesLies |
Hi, I have a character that always faces the mouse position, and moves in the 4 direction (up, down, left, right, he doesn’t rotate around the mouse), I know how to play and change animation, my problem is: I want to make the character strife when he is moving laterally to the position he is facing, I have Velocity and rotation of the character, how can I calculate de difference between those two so that I can chose the proper animation?