Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert weird sample thing
  • Loading branch information
jjshoots committed Apr 11, 2022
commit 6ba1048269c87f45bbbfada6fdd848c4d5d09aca
2 changes: 1 addition & 1 deletion gym/envs/box2d/lunar_lander.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def step(self, action):
else:
m_power = 1.0
# 4 is move a bit downwards, +-2 for randomness
ox = +tip[0] * (4 / SCALE + 2 * dispersion[0]) + side[0] * dispersion[0]
ox = +tip[0] * (4 / SCALE + 2 * dispersion[0]) + side[0] * dispersion[1]
oy = -tip[1] * (4 / SCALE + 2 * dispersion[0]) - side[1] * dispersion[1]
impulse_pos = (self.lander.position[0] + ox, self.lander.position[1] + oy)
p = self._create_particle(
Expand Down