Пример #1
0
 def __init__(self):
     self.offsetVec = (0, 0, 0.0, 0, 0, 0)
     self.pickupVec = (0, .15, 0, 0, 75, 0)
     self.model = "knife"
     self.scale = 0.01
     self.density = 25
     IsisObject.__init__(self)
Пример #2
0
    def __init__(self):
        self.offsetVec = offsetVec = (0, 0, 0, 0, 0, 0)
        self.model = "table/table"
        self.scale = randint(60, 90) / 10.0
        IsisObject.__init__(self)

        self.setH(180)
Пример #3
0
 def __init__(self):
     self.offsetVec = (0, 0, 0.0, 0, 0, 0)
     self.pickupVec = (0, 0.15, 0, 0, 75, 0)
     self.model = "knife"
     self.scale = 0.01
     self.density = 25
     IsisObject.__init__(self)
Пример #4
0
    def __init__(self):
        self.offsetVec = offsetVec = (0, 0, 0, 0, 0, 0)
        self.model = "table/table"
        self.scale = randint(60, 90) / 10.0
        IsisObject.__init__(self)

        self.setH(180)
Пример #5
0
    def __init__(self):
        self.model = {'default': "Fridge/Fridge"}
        self.scale = randint(16, 20) / 100.0
        self.density = 4000
        self.registerState("openState", "closed")

        IsisObject.__init__(self)

        self.in_layout = SlotLayout([(0, 0, .5), (0, 0, 1), (0, 0, 1.5)])
Пример #6
0
    def __init__(self):
        self.model = {"default": "Fridge/Fridge"}
        self.scale = randint(16, 20) / 100.0
        self.density = 4000
        self.registerState("openState", "closed")

        IsisObject.__init__(self)

        self.in_layout = SlotLayout([(0, 0, 0.5), (0, 0, 1), (0, 0, 1.5)])
Пример #7
0
    def __init__(self):
        self.offsetVec = (0, 0, -.1, 0, -120, -20)
        self.pickupVec = (-.125, .225, 0, 0, -125, 0)
        self.model = {"default": "slice_of_bread", "toast": "piece_of_toast"}
        self.scale = 0.5

        self.density = 200

        self.cookableCookedModel = "toast"
        IsisObject.__init__(self)
Пример #8
0
    def __init__(self):
        self.offsetVec = (0, 0, -0.1, 0, -120, -20)
        self.pickupVec = (-0.125, 0.225, 0, 0, -125, 0)
        self.model = {"default": "slice_of_bread", "toast": "piece_of_toast"}
        self.scale = 0.5

        self.density = 200

        self.cookableCookedModel = "toast"
        IsisObject.__init__(self)
Пример #9
0
    def __init__(self):
        self.offsetVec = (.00144, 0, 0.0, 0, 0, 0)

        self.model = "loaf_of_bread"
        self.scale = 0.2
        #self.create()

        # this is a dividable object, so define a piece
        self.piece = bread
        self.density = 1000
        IsisObject.__init__(self)
Пример #10
0
    def __init__(self):
        self.offsetVec = (0.00144, 0, 0.0, 0, 0, 0)

        self.model = "loaf_of_bread"
        self.scale = 0.2
        # self.create()

        # this is a dividable object, so define a piece
        self.piece = bread
        self.density = 1000
        IsisObject.__init__(self)
Пример #11
0
    def __init__(self):
        self.offsetVec = offsetVec = (0, 0, 0, 0, 0, 0)
        self.scale = 0.006
        self.density = 4000
        self.roomScale = 35

        self.length = randint(6, 9) * 2
        self.width = randint(6, 9) * 2
        self.height = randint(6, 9)
        self.activeModel = NodePath('kitchen')
        # don't allow model to ever be changed. since model is a pointer to a procedurally generated visual model, it doesn't behave like an egg file
        self.staticModel = True
        IsisObject.__init__(self)
Пример #12
0
    def __init__(self):
        self.offsetVec = offsetVec = (0, 0, 0, 0, 0, 0)
        self.scale = 0.006
        self.density = 4000
        self.roomScale = 35

        self.length = randint(6, 9) * 2
        self.width = randint(6, 9) * 2
        self.height = randint(6, 9)
        self.activeModel = NodePath("kitchen")
        # don't allow model to ever be changed. since model is a pointer to a procedurally generated visual model, it doesn't behave like an egg file
        self.staticModel = True
        IsisObject.__init__(self)
Пример #13
0
    def __init__(self):
        ######### Base Variables ##########
        # visual offset for the model's position and rotation
        self.offsetVec = (.5, .16, .19, -8, 0, 0)

        ######## Visual Parameters ###############
        # store a model, either as a string or a dictionary
        self.model = "toaster"
        self.scale = 0.7
        ######## Spatial Parameters ##############
        self.density = 1000
        self.on_layout = SlotLayout([(.3, .1, .2), (.3, -.1, .2)])

        ######## Functional Parameters ############
        self.cook_in = True
        self.cook_on = False

        self.registerState("containsToast", [0, 1, 2])
        IsisObject.__init__(self)
Пример #14
0
    def __init__(self):
        ######### Base Variables ##########
        # visual offset for the model's position and rotation
        self.offsetVec = (0.5, 0.16, 0.19, -8, 0, 0)

        ######## Visual Parameters ###############
        # store a model, either as a string or a dictionary
        self.model = "toaster"
        self.scale = 0.7
        ######## Spatial Parameters ##############
        self.density = 1000
        self.on_layout = SlotLayout([(0.3, 0.1, 0.2), (0.3, -0.1, 0.2)])

        ######## Functional Parameters ############
        self.cook_in = True
        self.cook_on = False

        self.registerState("containsToast", [0, 1, 2])
        IsisObject.__init__(self)