/// <summary>
 /// Reset the pose extractor, trying to keep the enabled state of the corresponding poses the same.
 /// </summary>
 internal void ResetPoseExtractor()
 {
     // Get the current enabled state of each body, so that we can reinitialize with them.
     Dictionary<Rigidbody, bool> bodyPosesEnabled = null;
     if (m_PoseExtractor != null)
     {
         bodyPosesEnabled = m_PoseExtractor.GetBodyPosesEnabled();
     }
     m_PoseExtractor = new RigidBodyPoseExtractor(RootBody, gameObject, VirtualRoot, bodyPosesEnabled);
 }