This commit is contained in:
p57492168 2022-07-03 12:37:25 +08:00
parent 3e24e286f2
commit 9977df32c9
1 changed files with 2 additions and 2 deletions

View File

@ -266,11 +266,11 @@ class SeaEnvEngine(object):
self._ship_charging[ship_id] = False
self._ship_charging_time_left[ship_id] = 0
self.ship_body[ship_id].angle = 1.5*np.pi
elif action == DOWN:
elif action == DOWN:
self._ship_charging[ship_id] = False
self._ship_charging_time_left[ship_id] = 0
self.ship_body[ship_id].angle = 0.5*np.pi
elif action == LEFT: # left
elif action == LEFT:
self._ship_charging[ship_id] = False
self._ship_charging_time_left[ship_id] = 0
self.ship_body[ship_id].angle = np.pi