def init(self, model, props): Generic.__init__(self, model, props) model.clearModelNodes() model.setPos(props['pos']) model.setQuat(props['quat']) model.setScale(props['scale']) model.flattenLight() model.reparentTo(self.parent)
def init(self,model,props): Generic.__init__(self,model,props) model.clearModelNodes() model.setPos(props['pos']) model.setQuat(props['quat']) model.setScale(props['scale']) model.flattenLight() model.reparentTo(self.parent)
def init(self,model,body,props): Generic.__init__(self,model,body,props) #myMaterial = Material() #myMaterial.setAmbient(VBase4(0,0,1,1)) #myMaterial.setDiffuse(VBase4(1,0,0,1)) #myMaterial.setShininess(5.0) #myMaterial.setSpecular(VBase4(0,0,0,1)) #myMaterial.setEmission(VBase4(0,1,0,1)) #print myMaterial.getDiffuse(), myMaterial.getSpecular(), myMaterial.getEmission() #model.setMaterial(myMaterial)
def init(self, model, body, props): Generic.__init__(self, model, body, props) #myMaterial = Material() #myMaterial.setAmbient(VBase4(0,0,1,1)) #myMaterial.setDiffuse(VBase4(1,0,0,1)) #myMaterial.setShininess(5.0) #myMaterial.setSpecular(VBase4(0,0,0,1)) #myMaterial.setEmission(VBase4(0,1,0,1)) #print myMaterial.getDiffuse(), myMaterial.getSpecular(), myMaterial.getEmission() #model.setMaterial(myMaterial)
def init(self, model, body, props): Generic.__init__(self, model, body, props)
def init(self,model,body,props): Generic.__init__(self,model,body,props)