As I see people are implementing it I wonder how to do it.
Per book it is done like this - we have a number of animations and have skeleton with bones set by ragdoll.
We remove/disable ragdoll from bones leaving transform intact and the looking for best matching animation
which is most close to current ragdoll position, then setting the desired animation to playback and enabling
animations for bones.
The question is - how can I find best matching animation? is there some way to look-up bone positions in
animations without playing them?