Character push object animation problem
Hello i am having difficulties creating animation for character pushing an object.
What i did , is , created animator parameter boolean named pushing. After that i created script
OnTriggerStay
The code looks like this
If is on collison and velocity.x is higher than 0.1 play pushing animation. But even the character speed is zero, it is still playing the pushing animation. I dont know what to do. I am using unity 5.2.3p3 because i am on Xp. Any help would be apreciated. thank you
Answer by jumpskull97 · Jan 02, 2019 at 04:55 PM
Do you create animation idle state whenever if the player is not moving? or have you make a transition and parameter to your default idle animation state?
Your answer
Follow this Question
Related Questions
How to know the animator's bones 0 Answers
Script Variable not transfering 0 Answers
RayCast and Animation not working 0 Answers
Animating Sprites Through Separate Script? 0 Answers
How to check if animation is playing in a Blend Tree? 1 Answer