Exemplo n.º 1
0
    def announceGenerate(self):
        DistributedEntity.announceGenerate(self)

        self.addSound("press", "sound/buttons/blip1.wav")
        self.addSound("denied", "sound/buttons/button2.wav")
        self.addSound("access", "sound/buttons/button3.wav")

        PhysicsUtils.makeBulletCollFromPandaColl(self.getModelNP())
        for np in self.getModelNP().findAllMatches("**/trigger_*"):
            btn = KeypadButton(self, np)
            self.buttons.append(btn)

        self.setEffect(LightingOriginEffect.make((0, 0.1, 0)))
 def createPhysicsNodes(self, rootNode):
     PhysicsUtils.makeBulletCollFromPandaColl(rootNode)
Exemplo n.º 3
0
 def enableModelCollisions(self):
     if self.model:
         PhysicsUtils.makeBulletCollFromPandaColl(self.model)
         PhysicsUtils.attachBulletNodes(
             self.model, self.air.getPhysicsWorld(self.getZoneId()))