Example #1
0
 private void SetJoint(float pos, float spring, float damper)
 {
     if (showDebug)
     {
         Debug.Log(base.name + " Set Joint ");
     }
     if (joint != null)
     {
         if (joint.GetTarget() != pos)
         {
             if (showDebug)
             {
                 Debug.Log(base.name + " Setting the Target ");
             }
             joint.SetTarget(pos);
         }
     }
     else if (showDebug)
     {
         Debug.Log(base.name + " There is nothing set within the joint var ");
     }
 }
Example #2
0
 public override float GetTarget()
 {
     return(jointA.GetTarget() + jointB.GetTarget());
 }