I'm attempting to move the fingers of a prefab using muscles with the SetHumanPose
method. However, the prefab is rotated 90 degrees on each call to SetHumanPose
. The following is a sample of the code used:
m_humanPose = new HumanPose();
m_humanPoseHandler = new HumanPoseHandler(m_Animator.avatar, m_Animator.transform);
m_humanPoseHandler.GetHumanPose(ref m_humanPose);
m_humanPose.muscles[79] = -40f;
m_humanPose.muscles[80] = -40f;
m_humanPose.muscles[81] = -40f;
m_humanPose.muscles[82] = -40f;
m_humanPoseHandler.SetHumanPose(ref m_humanPose);
I'm wondering if there's a way maybe to "bake in pose" via script?