(self)
Focuses camera on the object the pointer is currently pointing at.
Focuses camera on the object the pointer is currently pointing at.
Focuses camera on the object the pointer is currently pointing at .
def center(self):
    """Focuses camera on the object the pointer is currently pointing at."""
    if self._active:
      body_id, world_pos = self._camera.raycast(self._viewport,
                                                self._pointer.position)
      if body_id >= 0:
        self._camera.look_at(world_pos, _LOOK_AT_DISTANCE)
def center ( self ) : if self . _active : body_id , world_pos = self . _camera . raycast ( self . _viewport , self . _pointer . position ) if body_id >= 0 : self . _camera . look_at ( world_pos , _LOOK_AT_DISTANCE )