Today I integrated Box2D ragdoll physics with my Character Builder. I had 3 options to do this:
- Have a separate system for the animation ragdoll and physics ragdoll
- Have the animation ragdoll and physics ragdoll tied together
- Have one system for physics and animation
I decided to go for option 2, because I already have two systems and this was the easiest way to integrate it. Basically it works as if the physics ragdoll was tied with ropes to the animation ragdoll. You can see this on the video. The green lines are for the animation ragdoll and the blue is the physics ragdoll. Animating this is super easy – you just drag the blue limbs. Click for more to see the video.
Video from the Link-Dead animation editor:
The question: why use an animation system at all, why not just animate the physics ragdoll?
Well, for performance reasons. If the gostek is not dead there is no point in using the physics.