public static SoftJointLimit GetHighSoftJointLimit(this Joint.Limit limit) { SoftJointLimit softJointLimit = new SoftJointLimit(); softJointLimit.limit = (float)limit.upper * Mathf.Rad2Deg; return(softJointLimit); }
public static JointLimits GetJointLimits(this Joint.Limit limit) { JointLimits jointLimits = new JointLimits(); jointLimits.min = (float)limit.lower; jointLimits.max = (float)limit.upper; return(jointLimits); }