Skip to content

Commit

Permalink
Merge pull request #218 from adler3d/master
Browse files Browse the repository at this point in the history
grove -> groove
  • Loading branch information
BorisKolganov authored Sep 6, 2018
2 parents 19ea0fe + d935088 commit 5ec51ea
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 5ec51ea

Please sign in to comment.