diff --git a/madcars/Runners/mechanic/game_objects/base_car.py b/madcars/Runners/mechanic/game_objects/base_car.py index 394ec23..c5bd5f4 100644 --- a/madcars/Runners/mechanic/game_objects/base_car.py +++ b/madcars/Runners/mechanic/game_objects/base_car.py @@ -86,7 +86,7 @@ def create_wheel(self, wheel_side): wheel_position = getattr(self, wheel_side + '_wheel_position') wheel_friction = getattr(self, wheel_side + '_wheel_friction') wheel_elasticity = getattr(self, wheel_side + '_wheel_elasticity') - wheel_grove_offset = getattr(self, wheel_side + '_wheel_groove_offset') + wheel_groove_offset = getattr(self, wheel_side + '_wheel_groove_offset') wheel_damp_position = getattr(self, wheel_side + '_wheel_damp_position') wheel_damp_length = getattr(self, wheel_side + '_wheel_damp_length') wheel_damp_stiffness = getattr(self, wheel_side + '_wheel_damp_stiffness') @@ -102,12 +102,12 @@ def create_wheel(self, wheel_side): wheel_shape.elasticity = wheel_elasticity wheel_objects.append(wheel_shape) - wheel_grove = pymunk.GrooveJoint(self.car_body, wheel_body, - (wheel_damp_position[0] * self.x_modification, wheel_damp_position[1] - wheel_grove_offset), + wheel_groove = pymunk.GrooveJoint(self.car_body, wheel_body, + (wheel_damp_position[0] * self.x_modification, wheel_damp_position[1] - wheel_groove_offset), (wheel_damp_position[0] * self.x_modification, wheel_damp_position[1] - wheel_damp_length * 1.5), (0, 0)) - wheel_objects.append(wheel_grove) + wheel_objects.append(wheel_groove) wheel_damp = pymunk.DampedSpring(wheel_body, self.car_body, anchor_a=(0, 0), anchor_b=(wheel_damp_position[0] * self.x_modification, wheel_damp_position[1]), diff --git a/madcars/Runners/mechanic/game_objects/cars.py b/madcars/Runners/mechanic/game_objects/cars.py index 50f1a40..90e5f15 100644 --- a/madcars/Runners/mechanic/game_objects/cars.py +++ b/madcars/Runners/mechanic/game_objects/cars.py @@ -104,7 +104,7 @@ def create_wheel(self, wheel_side): wheel_position = getattr(self, wheel_side + '_wheel_position') wheel_friction = getattr(self, wheel_side + '_wheel_friction') wheel_elasticity = getattr(self, wheel_side + '_wheel_elasticity') - wheel_grove_offset = getattr(self, wheel_side + '_wheel_groove_offset') + wheel_groove_offset = getattr(self, wheel_side + '_wheel_groove_offset') wheel_damp_position = getattr(self, wheel_side + '_wheel_damp_position') wheel_damp_length = getattr(self, wheel_side + '_wheel_damp_length') wheel_damp_stiffness = getattr(self, wheel_side + '_wheel_damp_stiffness') @@ -120,12 +120,12 @@ def create_wheel(self, wheel_side): wheel_shape.elasticity = wheel_elasticity wheel_objects.append(wheel_shape) - wheel_grove = pymunk.GrooveJoint(self.car_body, wheel_body, - (wheel_damp_position[0] * self.x_modification, wheel_damp_position[1] - wheel_grove_offset), + wheel_groove = pymunk.GrooveJoint(self.car_body, wheel_body, + (wheel_damp_position[0] * self.x_modification, wheel_damp_position[1] - wheel_groove_offset), (wheel_damp_position[0] * self.x_modification, wheel_damp_position[1] - wheel_damp_length * 1.5), (0, 0)) - wheel_objects.append(wheel_grove) + wheel_objects.append(wheel_groove) wheel_damp = pymunk.DampedSpring(wheel_body, self.car_body, anchor_a=(0, 0), anchor_b=(wheel_damp_position[0] * self.x_modification, wheel_damp_position[1]),