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 "); } }
public override void SetValue(float value) { jointA.SetValue(value / 2f); jointB.SetValue(value / 2f); }