Mixing keyframes and ragdoll in Box2D

Hi all,

Anyone has any hint on how to mix keyframed animation and ragdoll physics using Box 2D? The idea is to use a biped representation for a character, and while running, jumping et al, use the animations, but if the character gets hit, use ragdoll physics to make it "fall".

Thanks in advance,
I too would be interested in this, does anyone know of an sample showing this? There seems to be no good reference on 2d character animation in general...

My guess would be to share the joints for the box2d ragdoll and the keyframe animated model, and only activate physics on the joints once the player gets in a state where he cant control the character.

-Martijn
I'm also very interested in this. A good system for this and I would be even more in love with Box2D than before!
I have made a system like that and I do the transformation of body parts manually. I don't disable or delete the joints however I might try that if it will improve the speed and if the cost of joint creation/destruction won't be too big.
Hello!

I'm trying to achieve something similar. I want to animate a "puppet"

Basically I have a MovieClip and I want to be able to animate it with the timeline, but also have some parts dangling and using physics.

Original thread: https://box2d.org/forum/viewtopic.php?t=3518