Hi guys, I have a script which toggles between animation and ragdoll.
I'm using animator.enabled to switch off the animation.
I'm controlling my character and let's say that in mid-jump animation I toggle ragdoll mode. the character flops to the ground as expected, however as I re enabled the animator, it continues the jump animation from the same spot with the same velocity as before.
How can I avoid this so that I can re enable the animator without the previous state?
I should say that I'm using a blend tree for walking and running from the entry state, and from that I have a jump blend tree.
Thanks.
↧