Mesh detaching from character capsule during ragdoll


We are currently trying to ragdoll enemies in response to player AoE attacks (explosions etc) and then have them recover using the physics to animation blend weight. However, we have run into a problem where when we ragdoll the character the mesh is becoming separated from the character’s capsule component, which is preventing us from blending back into animation control.

Does anyone know a way we can keep the mesh firmly attached to the capsule at all times?


Can only upload 2 attachments, so here is the rest of the blueprint.

Hey. did you ever find a solution to this?

We did actually. We found that the skeletal mesh needed a dedicated root bone at the top of hierarchy, rather than as we had it using the hips as the root.

However, be warned, we also found that blending back from physics to animation caused a crash bug in our game so the feature has since been cut.


Aha, so when you changed the root, the physic mesh automatically stayed attached to the capsule?

I kind of got it working by simulating physics on selected bones instead of activating the full ragdoll, but had problems with the capsule component not syncing properly across server and clients.

Almost, you have to specify to ragdoll everything but the root, using ‘set all bodies below simulate physics’.

I remember reading in the documentation somewhere that ragdoll doesn’t replicate properly, so you might out of luck there.

After ragdoll the capsule is detached from the mesh, but it can be re-attached. Here the code for the AI. Collision settings depend on your character collision settings.

Example video EPICA Combat Ragdoll Test - YouTube

1 Like