parameters: (self, batch_size=None, add_default_objects=True)
docstring: Resets the world to the default configuration.
          This removes all States and observers.
  
          Args:
            batch_size: int or None (Default value = None)
            add_default_objects: if True, adds defaults like Gravity
  
          Returns:
docstring_summary: Resets the world to the default configuration.
          This removes all States and observers.
docstring_tokens: Resets the world to the default configuration . This removes all States and observers .
function: def reset(self, batch_size=None, add_default_objects=True):
          """
          Resets the world to the default configuration.
          This removes all States and observers.
  
          Args:
            batch_size: int or None (Default value = None)
            add_default_objects: if True, adds defaults like Gravity
  
          Returns:
  
          """
          self._state = StateCollection()
          self.physics = self._state.default_physics()
          self.observers = set()
          self.batch_size = batch_size
          if add_default_objects:
              self.add(Gravity())
function_tokens: def reset ( self , batch_size = None , add_default_objects = True ) : self . _state = StateCollection ( ) self . physics = self . _state . default_physics ( ) self . observers = set ( ) self . batch_size = batch_size if add_default_objects : self . add ( Gravity ( ) )