parameters: (self,x,y)
docstring: Helper: returns a list of world objects sorted in order of
          increasing distance.
docstring_summary: Helper: returns a list of world objects sorted in order of
          increasing distance.
docstring_tokens: Helper : returns a list of world objects sorted in order of increasing distance .
function: def click_world(self,x,y):
          """Helper: returns a list of world objects sorted in order of
          increasing distance."""
          #get the viewport ray
          (s,d) = self.click_ray(x,y)
  
          geoms = [self.world.geometry(i) for i in range(self.world.numIDs())]
          res = collide.ray_cast(geoms,s,d)
          if not res:
              return
          id,geom = res
          self.toggle_selection(id)
          self.lastClicked = id
          self.refresh()
function_tokens: def click_world ( self , x , y ) : #get the viewport ray ( s , d ) = self . click_ray ( x , y ) geoms = [ self . world . geometry ( i ) for i in range ( self . world . numIDs ( ) ) ] res = collide . ray_cast ( geoms , s , d ) if not res : return id , geom = res self . toggle_selection ( id ) self . lastClicked = id self . refresh ( )