/* Animation Indices */ int AnimationMode = 0; int Frame = 0; /* animation lists */ int BodyMoveX [7][30]= { /* position for standing pose*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*position for thrust up*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*position for falling*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*position for thrust right*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*position for trust left*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*position for landing*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*death*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int BodyMoveY [7][30]= { /* position for standing pose*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*position for thrust up*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*position for falling*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*position for thrust right*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*position for trust left*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*position for landing*/ {0,-30,-60,-88,-88,-76,-64,-52,-40,-28, -16,4,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*death*/ {0,-5,-10,-15,-20,-25,-30,-35,-40,-45, -50,-55,-60,-65,-70,-75,-80,-85,-90,-95, -100,-105,-110,-115,-120,-125,-130,-135,-140,-145} }; int BodyMoveZ [7][30]= { /* position for standing pose*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*position for thrust up*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*position for falling*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*position for thrust right*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*position for trust left*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*position for landing*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*death*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int BodyRotateX[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int BodyRotateY[7][30] = { {180,180,180,180,180,180,180,180,180,180, 180,180,180,180,180,180,180,180,180,180, 180,180,180,180,180,180,180,180,180,180}, {180,180,180,180,180,180,180,180,180,180, 180,180,180,180,180,180,180,180,180,180, 180,180,180,180,180,180,180,180,180,180}, {180,180,180,180,180,180,180,180,180,180, 180,180,180,180,180,180,180,180,180,180, 180,180,180,180,180,180,180,180,180,180}, {180,180,180,180,180,180,180,180,180,180, 180,180,180,180,180,180,180,180,180,180, 180,180,180,180,180,180,180,180,180,180}, {180,180,180,180,180,180,180,180,180,180, 180,180,180,180,180,180,180,180,180,180, 180,180,180,180,180,180,180,180,180,180}, {180,180,180,180,180,180,180,180,180,180, 180,180,180,180,180,180,180,180,180,180, 180,180,180,180,180,180,180,180,180,180}, {180,180,180,180,180,180,180,180,180,180, 180,180,180,180,180,180,180,180,180,180, 180,180,180,180,180,180,180,180,180,180} }; int BodyRotateZ[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int NeckRotate[7][30]= { /* angles for standing pose*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*angles for thrust up*/ {0,0,-5,-10,-15,-20,-30,-40,-50,-50, -50,-50,-50,-50,-50,-50,-50,-50,-50,-50, -50,-50,-50,-50,-50,-50,-50,-50,-50,-50}, /*angles for falling*/ {-50,-40,-30,-20,-10,0,10,20,31,31, 31,31,31,31,31,31,31,31,31,31, 31,31,31,31,31,31,31,31,31,31}, /*angles for thrust right*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*angles for trust left*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*angles for landing*/ {31,10,-20,-38,-34,-30,-26,-22,-18,-14, -10,-6,-2,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*death*/ {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int RightShoulderRotateX[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*angles for falling*/ {0,-6,-12,-18,-24,-30,-36,-42,-45,-45, -45,-45,-45,-45,-45,-45,-45,-45,-45,-45, -45,-45,-45,-45,-45,-45,-45,-45,-45,-45}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {-45,-58,-71,-98,-88,-78,-68,-58,-48,-38, -28,-18,-8,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int RightShoulderRotateY[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*angles for falling*/ {0,-2,-4,-6,-8,-10,-11,-12,-13,-13, -13,-13,-13,-13,-13,-13,-13,-13,-13,-13, -13,-13,-13,-13,-13,-13,-13,-13,-13,-13}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {-13,-15,-17,-21,-19,-17,-15,-13,-11,-9, -7,-5,-3,-1,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int RightShoulderRotateZ[7][30] = { {0,0,0,0,0,0,-5,-10,-15,-20, -30,-30,-30,-30,-30,-30,-30,-30,-30,-30, -30,-30,-30,-30,-30,-30,-30,-30,-30,-30}, {-30,-30,-25,-25,-20,-15,-10,-5,-10,-15, -15,-15,-15,-15,-15,-15,-15,-15,-15,-15, -15,-15,-15,-15,-15,-15,-15,-15,-15,-15}, /*angles for falling*/ {-15,-18,-21,-24,-27,-30,-33,-36,-40,-40, -40,-40,-40,-40,-40,-40,-40,-40,-40,-40, -40,-40,-40,-40,-40,-40,-40,-40,-40,-40}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {-40,-30,-20,-14,-13,-12,-11,-10,-9,-8, -7,-6,-5,-4,-3,-2,-1,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int LeftShoulderRotateX[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*angles for falling*/ {0,12,24,36,48,60,72,84,85,85, 85,85,85,85,85,85,85,85,85,85, 85,85,85,85,85,85,85,85,85,85}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {85,42,-42,-84,-76,-68,-60,-52,-44,-36, -26,-20,-12,-4,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int LeftShoulderRotateY[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*angles for falling*/ {0,1,1,2,2,3,3,4,4,4, 4,4,4,4,4,4,4,4,4,4, 4,4,4,4,4,4,4,4,4,4}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {4,6,8,11,10,9,8,7,6,5, 4,3,2,1,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int LeftShoulderRotateZ[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {30,30,25,25,20,15,10,5,10,15, 15,15,15,15,15,15,15,15,15,15, 15,15,15,15,15,15,15,15,15,15}, /*angles for falling*/ {15,14,13,12,11,10,9,8,7,7, 7,7,7,7,7,7,7,7,7,7, 7,7,7,7,7,7,7,7,7,7}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {7,8,9,11,10,9,8,7,6,5, 4,3,2,1,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int ChestRotateX[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,-1,-2,-3,-4,-5,-5,-5,-5,-5, -5,-5,-5,-5,-5,-5,-5,-5,-5,-5, -5,-5,-5,-5,-5,-5,-5,-5,-5,-5}, /*angles for falling*/ {-5,-3,0,3,6,9,12,13,14,14, 14,14,14,14,14,14,14,14,14,14, 14,14,14,14,14,14,14,14,14,14}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {14,25,36,48,43,38,33,28,23,18, 13,8,3,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,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,90,90,90,90,90,90,95,90}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*angles for falling*/ {0,9,18,27,36,45,54,63,73,73, 73,73,73,73,73,73,73,73,73,73, 73,73,73,73,73,73,73,73,73,73}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {73,50,20,4,3,2,1,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,4}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int LeftElbowRotate[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, /*angles for falling*/ {0,-6,-12,-18,-24,-30,-37,-45,-51,-51, -51,-51,-51,-51,-51,-51,-51,-51,-51,-51, -51,-51,-51,-51,-51,-51,-51,-51,-51,-51}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {-51,-40,-38,-16,-14,-12,-10,-8,-6,-4, -2,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int TummyRotate[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0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0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int RightHipRotateZ[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,1,1,1,2,2,2,3, 3,4,4,5,5,5,5,5,5,5, 5,5,5,5,5,5,5,5,5,5}, /*angles for falling*/ {5,4,3,2,1,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int RightHipRotateX[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,5,5,5,10,10,20,20,20, 20,20,20,20,20,20,20,20,20,20, 20,20,20,20,20,20,20,20,20,20}, /*angles for falling*/ {20,13,6,-1,-8,-15,-22,-29,-36,-43, -44,-44,-44,-44,-44,-44,-44,-44,-44,-44, -44,-44,-44,-44,-44,-44,-44,-44,-44,-44}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {-44,-50,-56,-63,-57,-51,-45,-39,-33,-27, -21,-15,-9,-3,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int LeftHipRotateZ[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,-1,-1,-1,-2,-2,-2,-3, -3,-4,-4,-5,-5,-5,-5,-5,-5,-5, -5,-5,-5,-5,-5,-5,-5,-5,-5,-5}, {-5,-4,-3,-2,-1,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int LeftHipRotateX[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,5,5,5,10,10,20,20,20, 20,20,20,20,20,20,20,20,20,20, 20,20,20,20,20,20,20,20,20,20}, /*angles for falling*/ {20,12,4,-4,-12,-20,-28,-36,-44,-51, -51,-51,-51,-51,-51,-51,-51,-51,-51,-51, -51,-51,-51,-51,-51,-51,-51,-51,-51,-51}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {-51,-53,-56,-59,-53,-47,-41,-35,-29,-23, -17,-11,-5,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int RightKneeRotate[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,-2,-4,-5,-7,-10,-12,-14,-16,-18, -19,-20,-20,-20,-20,-20,-20,-20,-20,-20, -20,-20,-20,-20,-20,-20,-20,-20,-20,-20}, /*angles for falling*/ {-20,-12,-4,4,20,28,36,37,37,37, 37,37,37,37,37,37,37,37,37,37, 37,37,37,37,37,37,37,37,37,37}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {37,55,75,92,83,74,65,56,47,38, 29,20,11,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int LeftKneeRotate[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,-2,-4,-5,-7,-10,-12,-14,-16,-18, -19,-20,-20,-20,-20,-20,-20,-20,-20,-20, -20,-20,-20,-20,-20,-20,-20,-20,-20,-20}, /*angles for falling*/ {-20,-19,-18,-17,-16,-15,-14,-14,-14,-14, -14,-14,-14,-14,-14,-14,-14,-14,-14,-14, -14,-14,-14,-14,-14,-14,-14,-14,-14,-14}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {-14,30,60,93,84,75,66,57,48,39, 30,21,12,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int RightAnkleRotate[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,5,10,15,20,25,30,35,40,45, 50,55,60,65,75,80,85,90,90,90, 90,90,90,90,90,90,90,90,90,90}, /*angles for falling*/ {90,80,70,60,50,40,30,20,10,0, -10,-19,-19,-19,-19,-19,-19,-19,-19,-19, -19,-19,-19,-19,-19,-19,-19,-19,-19,-19}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {-19,-23,27,-30,-27,-24,-21,-18,-15,-12, -9,-6,-3,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} }; int LeftAnkleRotate[7][30] = { {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,5,10,15,20,25,30,35,40,45, 50,55,60,65,75,80,85,90,90,90, 90,90,90,90,90,90,90,90,90,90}, {90,80,70,60,50,40,30,20,10,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,-15,-30,-41,-35,-30,-25,-20,-15,-10, -5,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0} };