Exemplo n.º 1
0
    def mouseRotate(self, event):

        speed = self.cameraSpeed()

        human = self.selectedHuman
        rot = human.getRotation()
        rot[0] += 0.5 * event.dy * speed
        rot[1] += 0.5 * event.dx * speed
        human.setRotation(rot)
Exemplo n.º 2
0
    def mouseRotate(self, event):

        speed = self.cameraSpeed()

        human = self.selectedHuman
        rot = human.getRotation()
        rot[0] += 0.5 * event.dy * speed
        rot[1] += 0.5 * event.dx * speed
        human.setRotation(rot)
Exemplo n.º 3
0
 def rotateCamera(self, axis, amount):
     human = self.selectedHuman
     rot = human.getRotation()
     rot[axis] += amount
     human.setRotation(rot)
     self.redraw()
Exemplo n.º 4
0
 def rotateCamera(self, axis, amount):
     human = self.selectedHuman
     rot = human.getRotation()
     rot[axis] += amount
     human.setRotation(rot)
     self.redraw()