Пример #1
0
        public static SoftJointLimit GetHighSoftJointLimit(this Joint.Limit limit)
        {
            SoftJointLimit softJointLimit = new SoftJointLimit();

            softJointLimit.limit = (float)limit.upper * Mathf.Rad2Deg;
            return(softJointLimit);
        }
Пример #2
0
        public static JointLimits GetJointLimits(this Joint.Limit limit)
        {
            JointLimits jointLimits = new JointLimits();

            jointLimits.min = (float)limit.lower;
            jointLimits.max = (float)limit.upper;
            return(jointLimits);
        }