ok after another round of reparations, my update works again and it updates the fuel meter, but i still can't get the view of the spaceship to rotate, for now only the direction the spaceship accelerates when pressing "up" changes after a rotation, but the spaceship itself keeps pointing up. This is the code for the rotating : p.s : the problem has to be in this code because the update of the view of the position of the spaceship does work.
def update(self,dt): self.velocity = self.velocity + (self.acceleration * dt) self.pos = self.pos + self.velocity * dt a = 0 b = 0 if scene.kb.keys: a = a + 0.001 s = scene.kb.getkey() if (s == "up"): if self.zicht.meter.height != 0: self.velocity = self.velocity + self.gas self.vlam.visible = True b = b + 2 self.zicht.meter.height = self.zicht.meter.height - 0.1 self.zicht.update if (s == "left"): self.gas = rotate(self.gas,angle = math.pi/10, axis = (0,0,1)) (x,y,z) = self.frame.axis self.frame.axis = (x,y,z-0.1) if (s == "right") : self.gas = rotate(self.gas,angle = -(math.pi/10), axis = (0,0,1)) (x,y,z) = self.frame.axis self.frame.axis = (x,y,z+0.1) if (a == 0): self.vlam.visible = False -- http://mail.python.org/mailman/listinfo/python-list