Пример #1
0
 def __init__(self,
              location: pygame.Vector3 = pygame.Vector3(0, 0, 0),
              facing: pygame.Vector3 = pygame.Vector3(1, 0, 0),
              vertical: pygame.Vector3 = pygame.Vector3(0, 1, 0),
              **kwargs):
     super().__init__(**kwargs)
     self.__centre: pygame.Vector3 = location
     self.__facing: pygame.Vector3 = facing.normalize()
     self.__vertical: pygame.Vector3 = vertical.normalize()
Пример #2
0
 def setVertical(self, new_direction: pygame.Vector3):
     self.__vertical = new_direction.normalize()
Пример #3
0
 def setFacing(self, new_direction: pygame.Vector3):
     self.__facing = new_direction.normalize()