(self, physics)
Call PositionDetector._update_detection(), then recolor the goalposts.
Call PositionDetector._update_detection(), then recolor the goalposts.
Call PositionDetector . _update_detection () then recolor the goalposts .
def _update_detection(self, physics):
    """Call PositionDetector._update_detection(), then recolor the goalposts."""
    super()._update_detection(physics)
    if self._detected and not self._previously_detected:
      physics.bind(self._goal_geoms).rgba = self.goalpost_detected_rgba
    elif self._previously_detected and not self._detected:
      physics.bind(self._goal_geoms).rgba = self.goalpost_rgba
def _update_detection ( self , physics ) : super ( ) . _update_detection ( physics ) if self . _detected and not self . _previously_detected : physics . bind ( self . _goal_geoms ) . rgba = self . goalpost_detected_rgba elif self . _previously_detected and not self . _detected : physics . bind ( self . _goal_geoms ) . rgba = self . goalpost_rgba