コード例 #1
0
 def __init__(self, *a, **kw):
     self.xrot = math.degrees(math.atan(1 / math.sqrt(2)))
     self.yrot = 45.
     self.hoverHeight = 1024
     super(IsoWorldView, self).__init__(*a, **kw)
     self.compassNode.yawPitch = self.yrot, 90 - self.xrot
     self.viewActions.extend(
         (MoveViewMouseAction(), ZoomWheelAction(), RotateMouseAction()))
コード例 #2
0
 def __init__(self, *a, **kw):
     WorldView.__init__(self, *a, **kw)
     self.scale = 1.
     self.compassNode.yawPitch = 180, 0
     self.viewActions.extend((
         MoveViewMouseAction(),
         ZoomWheelAction(),
     ))
     self.worldScene.minlod = 2