Skip to content

Commit

Permalink
Merge pull request #269 from MelbourneHighSchoolRobotics/penalty_fix
Browse files Browse the repository at this point in the history
Fix right bot rotation on penalty.
  • Loading branch information
glipR authored May 22, 2021
2 parents 11e85b1 + 418b114 commit 2bd52e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ev3sim/presets/soccer_files/game_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def finishPenalty(self, botIndex):
self.robots[botIndex].clickable = True
self.robots[botIndex].body.position = self.spawns[botIndex % len(self.spawns)][botIndex // len(self.spawns)][0]
self.robots[botIndex].body.angle = (
self.spawns[botIndex // len(self.spawns)][botIndex % len(self.spawns)][1] * np.pi / 180
self.spawns[botIndex % len(self.spawns)][botIndex // len(self.spawns)][1] * np.pi / 180
)
self.robots[botIndex].body.velocity = (0.0, 0.0)
self.robots[botIndex].body.angular_velocity = 0
Expand Down

0 comments on commit 2bd52e6

Please sign in to comment.