示例#1
0
        void _body_arm_direct()
        {
            if (_spine_circle.enabled)
            {
                finish_roll();
            }

            /*for (_iii = 0; _iii < 6; ++_iii)
             *  m_joints[_iii].direct(m_dir_arm);*/


            Head.apply_target_angle(0f);
            if (m_left_arm_active)
            {
                _aaa = custom_direct_arm(LUArm, LFArm, m_dir_arm);
                if (m_right_arm_active)
                {
                    RUArm.apply_target_angle(LUArm.target_angle);
                    RFArm.apply_target_angle(LFArm.target_angle);
                }
                else
                {
                    right_arm_freeze_state();
                }
            }
            else   // только m_right_arm_active
            {
                _aaa = custom_direct_arm(RUArm, RFArm, m_dir_arm);
                left_arm_freeze_state();
            }
            SpineU.apply_target_angle(_aaa, true);
            m_arm_grouped = false;
            if (m_relaxed)
            {
                m_relaxed = false;
            }
            _need_arm_act = e_need_action.nothing;
        }
示例#2
0
 public void right_arm_freeze_state()
 {
     m_right_arm_active = false;
     RUArm.apply_target_angle(0f);
     RFArm.apply_target_angle(0f);
 }