This commit is contained in:
p57492168 2022-07-04 14:12:54 +08:00
parent 9977df32c9
commit a41ce5d9ac
1 changed files with 2 additions and 2 deletions

View File

@ -270,11 +270,11 @@ class SeaEnvEngine(object):
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:
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
elif action == RIGHT: # right
elif action == RIGHT:
self._ship_charging[ship_id] = False
self._ship_charging_time_left[ship_id] = 0
self.ship_body[ship_id].angle = 0.0