Commits

German Larrain committed d668b4a

VehicleWithArm: VEHICLE_OFFSET.Z changed and the chassis and both links are colored

  • Participants
  • Parent commits 077efe7

Comments (0)

Files changed (1)

File bin/VehicleWithArm.py

 	FLOOR_BOX_SIZE = (20,0.01,20)
 	
 	WHEEL_TORQUE = 400
-	VEHICLE_OFFSET = (2,0.35,2)
+	VEHICLE_OFFSET = (2,0.35,4)
 	
 	BALL_PARAMS = ((0.3,(1,0,0)),{'density':1}) # ((radius, center), density)
 	CHASSIS_PARAMS = (((2,0.2,1.5),(0.5,0.45,0)),{'mass':6}) # ((size, center), mass)
 							self.sim.get_object(link2), 
 							r2_anchor, cts.Z_AXIS)
 		
-		# test
-		#print(self.sim.get_object(wheelR).get_actor().set_color((0.8,0,0)))
+		self.sim.get_object(chassis).get_actor().set_color(cts.COLOR_RED)
+		self.sim.get_object(link1).get_actor().set_color(cts.COLOR_YELLOW)
+		self.sim.get_object(link2).get_actor().set_color(cts.COLOR_NAVY)
+		
 		self.chassis = chassis
 		self.wheelR = wheelR
 		self.wheelL = wheelL