表达式驱动手指

//curl控制主要弯曲程度值 relax控制弯曲程度浮动值

/////////////////////////////////////////////////////R_finger//////////////////////////////////////////////////

R_thumbA_skin_jnt.rotateX=R_thumbA_ctrl.rotateX+R_finger_ctrl.ThumbAx;
R_thumbA_skin_jnt.rotateY=R_thumbA_ctrl.rotateY+R_finger_ctrl.ThumbAy;
R_thumbA_skin_jnt.rotateY=R_thumbA_ctrl.rotateY+R_finger_ctrl.ThumbAz+R_finger_ctrl.Curl+R_finger_ctrl.Relax*(10);
R_thumbB_skin_jnt.rotateY=R_thumbB_ctrl.rotateY+R_finger_ctrl.ThumbB+R_finger_ctrl.Curl+R_finger_ctrl.Relax*(24);
R_thumbC_skin_jnt.rotateY=R_thumbC_ctrl.rotateY+R_finger_ctrl.ThumbC+R_finger_ctrl.Curl+R_finger_ctrl.Relax*(24);

R_indexA_skin_jnt.rotateX=R_indexA_ctrl.rotateX+R_finger_ctrl.IndexAx;
R_indexA_skin_jnt.rotateY=R_indexA_ctrl.rotateY+R_finger_ctrl.IndexAy;
R_indexA_skin_jnt.rotateX=R_indexA_ctrl.rotateX+R_finger_ctrl.IndexAz+R_finger_ctrl.Curl+R_finger_ctrl.Relax*(2);
R_indexB_skin_jnt.rotateX=R_indexB_ctrl.rotateX+R_finger_ctrl.IndexB+R_finger_ctrl.Curl+R_finger_ctrl.Relax*(35);
R_indexC_skin_jnt.rotateX=R_indexC_ctrl.rotateX+R_finger_ctrl.IndexC+R_finger_ctrl.Curl+R_finger_ctrl.Relax*(7);

R_middleFingerA_skin_jnt.rotateX=R_middleFingerA_ctrl.rotateX+R_finger_ctrl.MiddleAx;
R_middleFingerA_skin_jnt.rotateY=R_middleFingerA_ctrl.rotateY+R_finger_ctrl.MiddleAy;
R_middleFingerA_skin_jnt.rotateX=R_middleFingerA_ctrl.rotateX+R_finger_ctrl.MiddleAz+R_finger_ctrl.Curl+R_finger_ctrl.Relax*(13);
R_middleFingerB_skin_jnt.rotateX=R_middleFingerB_ctrl.rotateX+R_finger_ctrl.MiddleB+R_finger_ctrl.Curl+R_finger_ctrl.Relax*(33);
R_middleFingerC_skin_jnt.rotateX=R_middleFingerC_ctrl.rotateX+R_finger_ctrl.MiddleC+R_finger_ctrl.Curl+R_finger_ctrl.Relax*(20);

R_ringFingerA_skin_jnt.rotateX=R_ringFingerA_ctrl.rotateX+R_finger_ctrl.RingAx;
R_ringFingerA_skin_jnt.rotateY=R_ringFingerA_ctrl.rotateY+R_finger_ctrl.RingAy;
R_ringFingerA_skin_jnt.rotateX=R_ringFingerA_ctrl.rotateX+R_finger_ctrl.RingAz+R_finger_ctrl.Curl+R_finger_ctrl.Relax*(18);
R_ringFingerB_skin_jnt.rotateX=R_ringFingerB_ctrl.rotateX+R_finger_ctrl.RingB+R_finger_ctrl.Curl+R_finger_ctrl.Relax*(41);
R_ringFingerC_skin_jnt.rotateX=R_ringFingerC_ctrl.rotateX+R_finger_ctrl.RingC+R_finger_ctrl.Curl+R_finger_ctrl.Relax*(27);

R_pinkieA_skin_jnt.rotateX=R_pinkieA_ctrl.rotateX+R_finger_ctrl.PinkieAx;
R_pinkieA_skin_jnt.rotateY=R_pinkieA_ctrl.rotateY+R_finger_ctrl.PinkieAy;
R_pinkieA_skin_jnt.rotateX=R_pinkieA_ctrl.rotateX+R_finger_ctrl.PinkieAz+R_finger_ctrl.Curl+R_finger_ctrl.Relax*(31);
R_pinkieB_skin_jnt.rotateX=R_pinkieB_ctrl.rotateX+R_finger_ctrl.PinkieB+R_finger_ctrl.Curl+R_finger_ctrl.Relax*(42);
R_pinkieC_skin_jnt.rotateX=R_pinkieC_ctrl.rotateX+R_finger_ctrl.PinkieC+R_finger_ctrl.Curl+R_finger_ctrl.Relax*(34);

你可能感兴趣的:(表达式)