Hello, I'm trying to add a slide ability to my character, like when you're running and then slide to go under an obstacle. I had done this with the previous version of the TPC and wasn't difficult at all, but with this new version I just cannot make the character to move while playing the animation. The character moves and then, when I press the button, it stops, plays the slide animation (without moving) and finally it moves again.
The slide animation is the same I used with the previous version of the TPC so the problem is not there. I tried using the functions ApplyPosition and Update position but they move the character until the animation has ended not while the animation is playing. I also tried to move the character by adding an AnimatorMotion but it doesn't look very good and besides I lose the liberty of moving the character while is sliding, I mean changing it's moving direction.
I also tried changin the Use Root Motion Position and Use Root Motion Rotation to True, False en No Override but still nothing, the only thing I can do while the animation is playing is rotating the character. The animation is in the FullBody Layer. I'm basically using the same code that HeightChange.cs has. Could you please lend me a hand with this? What am I doing wrong?
The slide animation is the same I used with the previous version of the TPC so the problem is not there. I tried using the functions ApplyPosition and Update position but they move the character until the animation has ended not while the animation is playing. I also tried to move the character by adding an AnimatorMotion but it doesn't look very good and besides I lose the liberty of moving the character while is sliding, I mean changing it's moving direction.
I also tried changin the Use Root Motion Position and Use Root Motion Rotation to True, False en No Override but still nothing, the only thing I can do while the animation is playing is rotating the character. The animation is in the FullBody Layer. I'm basically using the same code that HeightChange.cs has. Could you please lend me a hand with this? What am I doing wrong?