UnityEditor.AvatarBipedMapper.BipedPose C# (CSharp) Method

BipedPose() static private method

static private BipedPose ( GameObject go, AvatarSetupTool bones ) : void
go UnityEngine.GameObject
bones AvatarSetupTool
return void
        internal static void BipedPose(GameObject go, AvatarSetupTool.BoneWrapper[] bones)
        {
            BipedPose(go.transform, true);
            Quaternion rotation = AvatarSetupTool.AvatarComputeOrientation(bones);
            go.transform.rotation = Quaternion.Inverse(rotation) * go.transform.rotation;
            AvatarSetupTool.MakeCharacterPositionValid(bones);
        }

Same methods

AvatarBipedMapper::BipedPose ( Transform t, bool ignore ) : void

Usage Example

        protected void BipedPose()
        {
            AvatarBipedMapper.BipedPose(gameObject, m_Bones);

            AvatarSetupTool.TransferPoseToDescription(m_Skeleton, root);
            m_Inspector.Repaint();
        }
All Usage Examples Of UnityEditor.AvatarBipedMapper::BipedPose