Exemple #1
0
 private void SetPosition(float angle)
 {
     if (showDebug)
     {
         Debug.Log(base.name + " Set Position ");
     }
     position = angle;
     if (joint != null)
     {
         if (joint.GetValue() != angle)
         {
             joint.SetValue(angle);
         }
     }
     else if (showDebug)
     {
         Debug.Log(base.name + " There is nothing set within the joint var ");
     }
 }
Exemple #2
0
 public override void SetValue(float value)
 {
     jointA.SetValue(value / 2f);
     jointB.SetValue(value / 2f);
 }