From d9350887ffd058f2622baf7bb61d4daa2ffdfe69 Mon Sep 17 00:00:00 2001 From: adler3d Date: Thu, 6 Sep 2018 02:10:19 +0300 Subject: [PATCH] grove -> groove --- madcars/Runners/mechanic/game_objects/base_car.py | 8 ++++---- madcars/Runners/mechanic/game_objects/cars.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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]),