Skip to content

Commit

Permalink
grove -> groove
Browse files Browse the repository at this point in the history
  • Loading branch information
adler3d committed Sep 5, 2018
1 parent 19ea0fe commit d935088
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions madcars/Runners/mechanic/game_objects/base_car.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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]),
Expand Down
8 changes: 4 additions & 4 deletions madcars/Runners/mechanic/game_objects/cars.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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]),
Expand Down

0 comments on commit d935088

Please sign in to comment.