(self)
Returns the world to its intial state
Returns the world to its intial state
Returns the world to its intial state
def reset_world(self):
        """Returns the world to its intial state"""
        self.world.ClearForces()
        self.joint1.motorSpeed = 0
        self.joint2.motorSpeed = 0
        self.body1.linearVelocity = (0, 0)
        self.body1.angularVelocity = 0
        self.body2.linearVelocity = (0, 0)
        self.body2.angularVelocity = 0
        self.set_joint_angles(self.body1, self.body2, self.x0[0], self.x0[1])
def reset_world ( self ) : self . world . ClearForces ( ) self . joint1 . motorSpeed = 0 self . joint2 . motorSpeed = 0 self . body1 . linearVelocity = ( 0 , 0 ) self . body1 . angularVelocity = 0 self . body2 . linearVelocity = ( 0 , 0 ) self . body2 . angularVelocity = 0 self . set_joint_angles ( self . body1 , self . body2 , self . x0 [ 0 ] , self . x0 [ 1 ] )