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 )
def __init__(self): Zone.__init__(self, "models/maps/toontown_central.egg") self.setSpawnPoint(0, 18, 4) self.setSpawnRot(180)
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 )
def __init__( self, vertex_a, vertex_b ): self.vertices = [ vertex_a, vertex_b ] Zone.__init__( self, *self.generate_bounds() )