- robot.pos = (x - AREA_X/2, y - AREA_Y/2, 150)
- robot.axis = (math.cos(a*math.pi/180),
- math.sin(a*math.pi/180),
- 0)
- robot.size = (250, 320, 350)
+ if color == YELLOW:
+ tmp_x = robot_x - AREA_X/2
+ tmp_y = robot_y - AREA_Y/2
+ tmp_a = robot_a
+ else:
+ tmp_x = -robot_x + AREA_X/2
+ tmp_y = -robot_y + AREA_Y/2
+ tmp_a = robot_a
+
+ robot.pos = (tmp_x, tmp_y, ROBOT_HEIGHT/2)
+ axis = (math.cos(tmp_a*math.pi/180),
+ math.sin(tmp_a*math.pi/180),
+ 0)
+
+ robot.axis = axis
+ robot.size = (250, 320, ROBOT_HEIGHT)
+
+ lspickle.pos = (tmp_x + (robot_lspickle*60) * math.cos((tmp_a+90)*math.pi/180),
+ tmp_y + (robot_lspickle*60) * math.sin((tmp_a+90)*math.pi/180),
+ ROBOT_HEIGHT/2)
+ lspickle.axis = axis
+ lspickle.size = (20, 320, 5)
+
+ rspickle.pos = (tmp_x + (robot_rspickle*60) * math.cos((tmp_a-90)*math.pi/180),
+ tmp_y + (robot_rspickle*60) * math.sin((tmp_a-90)*math.pi/180),
+ ROBOT_HEIGHT/2)
+ rspickle.axis = axis
+ rspickle.size = (20, 320, 5)