Trigger character ragdoll with input key event?

I found this question while looking into how to do this, and though it is older I thought I would share what I came up with:

I have two functions on my character’s blueprint, StartRagdoll and StopRagdoll.

StartRagdoll takes a reference to the character mesh and sets its collision profile to ‘Ragdoll’ and then sets Simulate Physics to true.

StopRagdoll does the same in reverse, but then it reattaches the mesh to the capsule component and sets it relative location and rotation to the same values that the mesh started with.

1 Like