コード例 #1
0
ファイル: Box.py プロジェクト: philetus/l33tC4D
    def __init__( self, centroid=(0, 0, 0), size=10.0 ):
        self.centroid = Vertex( *centroid )
        self.size = float( size )

        # generate min and max bounds for zone init
        radius = self.size / 2.0
        min_bound = Vertex( *[c - radius for c in self.centroid] )
        max_bound = Vertex( *[c + radius for c in self.centroid] )
        Zone.__init__( self, min_bound, max_bound )

        self.selected_color = ( 0.7, 0.0, 0.1, 1.0 )
        self.last_color = None

        self.specular = ( 1.0, 1.0, 1.0, 1.0 )
        self.shininess = 100.0
        self.diffuse = ( 0.1, 0.0, 0.7, 1.0 )
コード例 #2
0
 def __init__(self):
     Zone.__init__(self, "models/maps/toontown_central.egg")
     self.setSpawnPoint(0, 18, 4)
     self.setSpawnRot(180)
コード例 #3
0
ファイル: Box.py プロジェクト: philetus/l33tC4D
    def __init__( self, position=(0,0,0), size=2, color=(0,0,1,1) ):
        Zone.__init__( self )

        self.position = Vector3( position )
        self.size = float( size )
コード例 #4
0
ファイル: Edge.py プロジェクト: philetus/l33tC4D
 def __init__( self, vertex_a, vertex_b ):
     self.vertices = [ vertex_a, vertex_b ]
     
     Zone.__init__( self, *self.generate_bounds() )