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