Exemple #1
0
        // note this does not reposition the center point of the magnet orb
        // so expanding the radius too much will cause it to clip backward into the wrist joint
        public void SetHandSphereRadius(float radius)
        {
            if (radius < 0.04f || radius > 0.5f)
            {
                throw new ArgumentOutOfRangeException(
                          $"radius={radius} of hand cannot be less than 0.04m nor greater than 0.5m"
                          );
            }

            IK_Robot_Arm_Controller arm = getArm();

            arm.SetHandSphereRadius(radius);
            actionFinished(true);
        }