Ejemplo n.º 1
0
 //checks if object is within radius of specified robot arm
 public static bool IsObjectWithinRobotArmRadius(RobotArmType arm, Vector2 object_position)
 {
     if (arm == RobotArmType.LEFT_ARM)
     {
         return(IsObjectWithinArmRadius(leftArm, object_position));
     }
     else if (arm == RobotArmType.RIGHT_ARM)
     {
         return(IsObjectWithinArmRadius(rightArm, object_position));
     }
     return(false);
 }
Ejemplo n.º 2
0
 public static bool HasArmGraspedObject(RobotArmType arm)
 {
     if (arm == RobotArmType.LEFT_ARM)
     {
         return(leftArm.ObjectGrasped());
     }
     else if (arm == RobotArmType.RIGHT_ARM)
     {
         return(rightArm.ObjectGrasped());
     }
     return(false);
 }