Download

Blending from ragdoll to animation?

Hello everyone,

I am trying to get a character to stand up from ragdoll. I have it mostly working, but one of the issues I’m facing is that I am unable to blend from the position the character is on the ground after ragdoll being enabled, to the get-up animation. If I try blending, it blends from T-Pose to the get-up animation. Here is an example of my issue (blending set to 0.25f):

https://i.makeagif.com/media/9-23-2017/lW6B6n.gif

In essence, all I am doing is turning simulate physics on and off for the mesh (and adjusting the capsule collision). If anyone is interested I will post my C++ code, but it’s basically just that. Is there any way to blend from ragdoll to an animation? Maybe a way of updating the Animation instance or something like that to the current bone positions? I am using ***PlaySlotAnimationAsDynamicMontage() ***to play the montage.

Any help is very much appreciated!

  • J

This is perfect! I had no idea this existed, thank you.