I have a question about mapping ragdoll information onto a high res animation skeleton.
I have two poses, a low res ragdoll pose and a high res animation pose. I'm using the animation pose to place my graphics representation of the bones. I just have the animation pose set to the reference pose. I want to map the ragdoll bone positions onto the high res skeleton so I can have my graphical bones move with the ragdoll as it hits the ground etc, so I thought I would do this by mapping the low res onto the high res via:
hkaPose poseLowRes( m_ragdollInstance->getSkeleton() );
ragdollToHighResMapper->mapPose(poseLowRes, *poseHighRes, hkaSkeletonMapper::CURRENT_POSE);
however this gives some really screwy values for the bones unless I set the poseLowRes to the reference pose where I just get the unmoving reference pose. Does this mean that I need to "populate" the low res pose with the ragdoll positions? How would I go about doing this?
Thanks in advance for any help.