Exemple #1
0
        void _body_arm_straight()
        {
            Head.goto_straight();
            SpineU.goto_straight();
            if (m_left_arm_active)
            {
                LUArm.goto_straight();
                LFArm.goto_straight();
                if (m_right_arm_active)
                {
                    RUArm.goto_straight();
                    RFArm.goto_straight();
                }
                else
                {
                    right_arm_freeze_state();
                }
            }
            else               // только m_right_arm_active
            {
                RUArm.goto_straight();
                RFArm.goto_straight();
                left_arm_freeze_state();
            }

            if (_spine_circle.enabled)
            {
                finish_roll();
            }
            if (m_relaxed)
            {
                m_relaxed = false;
            }
            if (m_arm_grouped)
            {
                m_arm_grouped = false;
            }
            _need_arm_act = e_need_action.nothing;
        }
Exemple #2
0
        void _body_arm_group()
        {
            if (m_arm_grouped && m_leg_grouped)
            {
                roll(true);
            }
            else
            {
                if (m_left_arm_active)
                {
                    LUArm.goto_group();
                    LFArm.goto_group();

                    if (m_right_arm_active)
                    {
                        Head.goto_group();
                        SpineU.goto_group();
                        RUArm.goto_group();
                        RFArm.goto_group();
                    }
                }
                else if (m_right_arm_active)
                {
                    RUArm.goto_group();
                    RFArm.goto_group();
                }

                m_arm_grouped = true;
                if (m_leg_grouped)
                {
                    start_roll();
                }
            }
            if (m_relaxed)
            {
                m_relaxed = false;
            }
            _need_arm_act = e_need_action.nothing;
        }
Exemple #3
0
 public void left_arm_freeze_state()
 {
     m_left_arm_active = false;
     LUArm.apply_target_angle(0f);
     LFArm.apply_target_angle(0f);
 }