Quantcast
Channel: Questions in topic: "ragdoll"
Viewing all articles
Browse latest Browse all 565

Animation keeps velocity, position and animation when re enabled,Animator keeps animation and velocity when re enabled

$
0
0
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.

Viewing all articles
Browse latest Browse all 565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>