(self, value)
Updates the view offset based on the center of the screen.
Updates the view offset based on the center of the screen.
Updates the view offset based on the center of the screen .
def setCenter(self, value):
        """
        Updates the view offset based on the center of the screen.
        """
        self._viewCenter = b2.b2Vec2(*value)
        self._viewCenter *= self._viewZoom
        self._viewOffset = self._viewCenter - self.screenSize/2
def setCenter ( self , value ) : self . _viewCenter = b2 . b2Vec2 ( * value ) self . _viewCenter *= self . _viewZoom self . _viewOffset = self . _viewCenter - self . screenSize / 2