Animator script
Hi , i am building a game where i have set up a player object and a raycast movement control , i want to add animations to the object but my problem is that i cant figure a script and a transition that would take me from idle to walking when the object moves and to take me to idle when the object stops moving! P.S : i tried doing it with rigidbody velocity magnitude but the objects magnitude keep increasing when i render the game!,Hi ,im building a simple game where i have set up a player object and a raycast movement control , i want to add animations to my player but i cant figure a way to make a condition that will start walking animation when the player moves and to go back to idle animation when the player is not moving P.S : i tried using rigidbody magnitude but the problem is that my speed increases continuesly without reason!
Your answer
![](https://koobas.hobune.stream/wayback/20220612232420im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Animator Position VS Script Vector 3 0 Answers
Animation not consistent 0 Answers
Help please, movement and animator issue 0 Answers
How to stop previous animation? 1 Answer