Пример #1
0
 def get_mv_matrix(self):
     camera_position = self.target - math.normalize(
         self._get_camera_direction()) * self.distance
     return math.look_at_matrix(camera_position,
                                self.target,
                                up=[0, 0, 1],
                                right=self._get_direction(self.course + 90))
Пример #2
0
 def get_mv_matrix(self):
     camera_position = self.target - math.normalize(self._get_camera_direction()) * self.distance
     return math.look_at_matrix(camera_position, self.target,
                                up=[0, 0, 1], right=self._get_direction(self.course + 90))
Пример #3
0
 def get_mv_matrix(self):
     camera_position = self.get_position()
     return math.look_at_matrix(camera_position, self.target,
                                up=[0, 0, 1], right=self._get_direction(self.course + 90))
Пример #4
0
 def get_mv_matrix(self):
     camera_position = self.get_position()
     return math.look_at_matrix(camera_position,
                                self.target,
                                up=[0, 0, 1],
                                right=self._get_direction(self.course + 90))