Stop ragdoll from twitching?

Here’s how I’m entering ragdoll, I disable the anim blueprint, enable ragdoll and collision (which is required for ragdoll to work)


But I have this problem where the ragdoll is often twitching like this.

The usual suspect from an online search is self-collision and animation

That is: physics asset colliders colliding with other physics asset colliders,
And: animbp trying to animate a ragdoll mesh

However I tried in my physics asset to disable collision between absolutely every single collider in there and it still twitches just as much, had no effect on the issue.

And as you can see in the code up top, I’m disabling the anim blueprint entirely on entering ragdoll so that’s not it either.

I’ve tried various things, even deleting a lot of colliders just to see if it’ll work but I can’t seem to find any singular problematic collider.

How can I stop this from happening?

Chaos twitches. Nothing you can do about it really.

Either swap to PhysX by building the engine from source, or (and you should either way) put the ragdoll to sleep immidiately.

Bt put to sleep, maybe you actually want to go really aggressive on it rather than rely on Epic, or Chaos…

Save a pose snapshot of the animation. Use the saved pose as the animation. Disable any simulation and everything else entierly.

You can do this aggressive enough that it just triggers the moment the whole physics body collapses, or you can ease it to where it awaits for the body to be put to sleep by the engine settings.

Because you are dealing with boneheads who can’t code, apparently, I truly suggest you save yourself from issues by going the extreme route about it.

Being it is a simulation, if you stop it in its tracks too fast it won’t look good.
So, what you can do is test the position of the pelvis, and headbone for stability.
Once 3 to 4 frames have returned very similar values within say .001 UU from each other, you can go ahead and toggle the pose snapshot system.
Goodbye problems.

Ps: with physx, you are still supposed to swap from a simulation to a pose snapshot - the difference is you do not need to run your own tests and you do get a callback when the body is put to sleep…

1 Like

Dang that really, really sucks, is there really no solution besides just turning it off? I could have sworn I’ve seen games that have non-twitchy active ragdolls in ue :thinking: could this be some kind of regression?