How do i calculate in which direction my character is moving relative to it's rotation?
I am moving my character with Vector3.MoveTowards(). How do i know which direction my character is moving in relative to it's transform.forward?
for example: the face of my character is facing left and the movement is facing forward. in that example you know that the direction is facing right.
Does anybody know how to calculate this in code? FYI i would like to use this for animating the character based on it's movement value.
Thanks!
Your answer
Follow this Question
Related Questions
How do i calculate in which direction my character is moving relative to it's rotation? 0 Answers
Trying to figure out WallRiding, with Vector3.Cross 0 Answers
How to play animations from script. 0 Answers
How to make changing direction in my FPS game less jerky? 3 Answers
Character swap breaks movement. 1 Answer