ForceApplierSingleJoint("chest",TargetZForce,targetTorque,delayvariable1, ZeroTorque,1f,-.15f);
ForceApplierSingleJoint("hip",targetForce,targetTorque,delayvariable6,ZeroTorque,1f,.33f);
ForceApplierSingleJoint("abdomen2",targetForce,targetTorque,delayvariable3,ZeroTorque,1f,.13f);
ForceApplierSingleJoint("abdomen",targetForce,targetTorque,delayvariable5,ZeroTorque,1f,.23f);
ForceApplierSingleJoint("pelvis",targetForce,targetTorque,delayvariable7,ZeroTorque,1f,.25f);
ForceApplierSingleJoint("rShin",targetForce,targetTorque,delayvariable5,ZeroTorque,1f,.15f);
ForceApplierSingleJoint("lShin",targetForce,targetTorque,delayvariable5,ZeroTorque,1f,.15f);
ForceApplierSingleJoint("rThigh",targetForce,targetTorque,delayvariable6,0f,1f,.53f);
ForceApplierSingleJoint("lThigh",targetForce,targetTorque,delayvariable6,0f,1f,.53f);
//torque
ForceApplierSingleJoint("abdomen",targetForce,targetTorque,delayvariable4,1f,ZeroForce,-1.5f);
ForceApplierSingleJoint("pelvis",targetForce,targetTorque,delayvariable7,1f,ZeroForce,-2f);
ForceApplierSingleJoint("abdomen2",targetForce,targetTorque,delayvariable3,1f,ZeroForce,-.3f);
ForceApplierSingleJoint("chest",TargetZForce,targetTorque,delayvariable2,1f,ZeroForce,-.15f);
ForceApplierSingleJoint("lCollar",targetForce,rigidbodyCache["lCollar"].transform.up,delayvariable5,1f,0f,1f);
ForceApplierSingleJoint("rCollar",targetForce,-rigidbodyCache["rCollar"].transform.up,delayvariable5,1f,0f,1f);
ForceApplierSingleJoint("rThigh",targetForce,rigidbodyCache["rThigh"].transform.up*torqueFactorJSON.val,delayvariable5,1f,0f,.3f*KneeMovement.val);
ForceApplierSingleJoint("lThigh",targetForce,rigidbodyCache["lThigh"].transform.up*torqueFactorJSON.val,delayvariable5,1f,0f,-.3f*KneeMovement.val);
ForceApplierSingleJoint("rThigh",targetForce,rigidbodyCache["rThigh"].transform.forward*torqueFactorJSON.val,delayvariableSine5,1f,0f,.3f*KneeMovement.val);
ForceApplierSingleJoint("lThigh",targetForce,-rigidbodyCache["lThigh"].transform.forward*torqueFactorJSON.val,delayvariableSine5,1f,0f,.3f*KneeMovement.val);
//secondary actions
//up-down
ForceApplierSingleJoint("hip",targetForceZ*updownsecondarymotionint,targetTorque,delayvariableSine5,0f,1f,1f);
ForceApplierSingleJoint("chest",targetForceZ*updownsecondarymotionint,targetTorque,delayvariableSine1,0f,1f,.75f);
ForceApplierSingleJoint("rForeArm",targetForceZ*updownsecondarymotionint,targetTorque,delayvariableSine4,0f,1f,-.1f*HandElbowMovement.val);
ForceApplierSingleJoint("lForeArm",targetForceZ*updownsecondarymotionint,targetTorque,delayvariableSine4,0f,1f,-.1f*HandElbowMovement.val);
//side to side
if(SidetoSidemotionint!=0f){
ForceApplierSingleJoint("rThigh",targetForceX*SidetoSidemotionint,targetTorque,delayvariableSine3,1f,1f,.33f);
ForceApplierSingleJoint("lThigh",targetForceX*SidetoSidemotionint,targetTorque,delayvariableSine3,1f,1f,.33f);
ForceApplierSingleJoint("hip",targetForceX*SidetoSidemotionint,targetTorque,delayvariableSine3,1f,1f,.33f);}
//ForceApplierSingleJoint("rForeArm",targetForceX*SidetoSidemotionint,targetTorque,delayvariable4,0f,1f,.1f*HandElbowMovement.val);
//ForceApplierSingleJoint("lForeArm",targetForceX*SidetoSidemotionint,targetTorque,delayvariable4,0f,1f,.1f*HandElbowMovement.val);