in gym_pusht/envs/pusht.py [0:0]
def _set_state(self, state):
self.agent.position = list(state[:2])
# Setting angle rotates with respect to center of mass, therefore will modify the geometric position if not
# the same as CoM. Therefore should theoretically set the angle first. But for compatibility with legacy data,
# we do the opposite.
self.block.position = list(state[2:4])
self.block.angle = state[4]
# Run physics to take effect
self.space.step(self.dt)